ansible: Portability fixes for reusing modules / Debian trixie
[lttng-ci.git] / automation / ansible / roles / common-node / tasks / setup-Debian.yml
CommitLineData
858e2403
MJ
1---
2- name: Update apt cache.
3 apt: update_cache=yes cache_valid_time=86400
4
5- name: Ensure common_node packages are installed.
6 apt: "name={{ common_node_packages }} state=present"
fbd55a9b
KS
7
8- name: Install linux headers
b67c1a0b 9 when: inventory_hostname in groups['node_standalone']|default([])
fbd55a9b
KS
10 block:
11 - name: Install i386 linux headers Debian
12 when: ansible_architecture == 'i386' and ansible_distribution == 'Debian'
13 apt:
14 name: ['linux-headers-686', 'linux-headers-686-pae']
70b1127c
KS
15 - name: Install amd64 linux headers Debian
16 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Debian'
17 apt:
18 name: ['linux-headers-amd64']
fbd55a9b
KS
19 - name: Install linux headers Ubuntu
20 when: ansible_distribution == 'Ubuntu'
21 apt:
22 name: linux-headers-generic
This page took 0.043298 seconds and 4 git commands to generate.