ansible: Add CI PPA to Ubuntu nodes
[lttng-ci.git] / automation / ansible / roles / common / tasks / setup-Debian.yml
1 ---
2 - name: Add LTTng-CI PPA
3 when: ansible_distribution == 'Ubuntu'
4 block:
5 - name: LTTng-CI PPA | apt key
6 ansible.builtin.copy:
7 src: efficios_ubuntu_ci.gpg
8 dest: /etc/apt/trusted.gpg.d/efficios_ubuntu_ci.gpg
9 owner: root
10 group: root
11 mode: '0644'
12
13 - name: LTTng-CI PPA | apt source
14 ansible.builtin.apt_repository:
15 repo: "deb [signed-by=/etc/apt/trusted.gpg.d/efficios_ubuntu_ci.gpg] http://ppa.launchpad.net/efficios/ci/ubuntu {{ ansible_distribution_release }} main"
16 state: present
17 filename: efficios-ubuntu-ci
18
19 - name: Update apt cache.
20 apt: update_cache=yes cache_valid_time=86400
21
22 - name: Ensure common packages are installed.
23 apt: "name={{ common_packages }} state=present"
This page took 0.031063 seconds and 5 git commands to generate.