ansible: Add CI PPA to Ubuntu nodes
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 21 Apr 2023 18:33:49 +0000 (14:33 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 21 Apr 2023 18:34:08 +0000 (14:34 -0400)
Change-Id: Ic07c182d7944ea0a769ec8413f05c126a17e4a3f
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/roles/common/files/efficios_ubuntu_ci.gpg [new file with mode: 0644]
automation/ansible/roles/common/tasks/setup-Debian.yml

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 (file)
index 0000000..0727cda
Binary files /dev/null and b/automation/ansible/roles/common/files/efficios_ubuntu_ci.gpg differ
index b1a97fc3c588ad703f814b36a1033a7af91c769b..0f70202a8e208e652d89793d1823a5d30dc2c844 100644 (file)
@@ -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
 
This page took 0.02387 seconds and 4 git commands to generate.