2 - name: Update apt cache.
3 apt: update_cache=yes cache_valid_time=86400
5 - name: Ensure common_node packages are installed.
6 apt: "name={{ common_node_packages }} state=present"
8 - name: Install linux headers
9 when: inventory_hostname in groups['node_standalone']
11 - name: Install i386 linux headers Debian
12 when: ansible_architecture == 'i386' and ansible_distribution == 'Debian'
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'
18 name: ['linux-headers-amd64']
19 - name: Install linux headers Ubuntu
20 when: ansible_distribution == 'Ubuntu'
22 name: linux-headers-generic