From: Michael Jeanson Date: Fri, 21 Apr 2023 18:33:49 +0000 (-0400) Subject: ansible: Add CI PPA to Ubuntu nodes X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=289cc9cb564d0864528755df74e35b3b6ea02c6a;p=lttng-ci.git ansible: Add CI PPA to Ubuntu nodes Change-Id: Ic07c182d7944ea0a769ec8413f05c126a17e4a3f Signed-off-by: Michael Jeanson --- diff --git a/automation/ansible/roles/common/files/efficios_ubuntu_ci.gpg b/automation/ansible/roles/common/files/efficios_ubuntu_ci.gpg new file mode 100644 index 0000000..0727cda Binary files /dev/null and b/automation/ansible/roles/common/files/efficios_ubuntu_ci.gpg differ diff --git a/automation/ansible/roles/common/tasks/setup-Debian.yml b/automation/ansible/roles/common/tasks/setup-Debian.yml index b1a97fc..0f70202 100644 --- a/automation/ansible/roles/common/tasks/setup-Debian.yml +++ b/automation/ansible/roles/common/tasks/setup-Debian.yml @@ -1,4 +1,21 @@ --- +- name: Add LTTng-CI PPA + when: ansible_distribution == 'Ubuntu' + block: + - name: LTTng-CI PPA | apt key + ansible.builtin.copy: + src: efficios_ubuntu_ci.gpg + dest: /etc/apt/trusted.gpg.d/efficios_ubuntu_ci.gpg + owner: root + group: root + mode: '0644' + + - name: LTTng-CI PPA | apt source + ansible.builtin.apt_repository: + repo: "deb [signed-by=/etc/apt/trusted.gpg.d/efficios_ubuntu_ci.gpg] http://ppa.launchpad.net/efficios/ci/ubuntu {{ ansible_distribution_release }} main" + state: present + filename: efficios-ubuntu-ci + - name: Update apt cache. apt: update_cache=yes cache_valid_time=86400