ansible: common: move root user logic to users.yml
[lttng-ci.git] / automation / ansible / roles / common / tasks / setup-Debian.yml
CommitLineData
3ea0152b 1---
289cc9cb
MJ
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
3ea0152b
MJ
19- name: Update apt cache.
20 apt: update_cache=yes cache_valid_time=86400
21
22- name: Ensure common packages are installed.
4ab6686a
KS
23 apt: "name={{ common_packages + packages_Debian|default([]) }} state=present"
24
25- name: Debug common packages
26 debug:
27 msg: "{{ common_packages + packages_Debian|default([]) }}"
This page took 0.033795 seconds and 4 git commands to generate.