ansible: Portability fixes for reusing modules / Debian trixie
[lttng-ci.git] / automation / ansible / roles / common-node / tasks / setup-Debian.yml
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"
7
8 - name: Install linux headers
9 when: inventory_hostname in groups['node_standalone']|default([])
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']
15 - name: Install amd64 linux headers Debian
16 when: ansible_architecture == 'x86_64' and ansible_distribution == 'Debian'
17 apt:
18 name: ['linux-headers-amd64']
19 - name: Install linux headers Ubuntu
20 when: ansible_distribution == 'Ubuntu'
21 apt:
22 name: linux-headers-generic
This page took 0.031084 seconds and 4 git commands to generate.