]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/debian-base/tasks/main.yml
Apt module: Update "state=installed" to "state=present"
[AnsibleRoles.git] / roles / debian-base / tasks / main.yml
1 ---
2 # tasks file for debian-base
3
4 - name: install common packages
5   tags:
6     - packages
7   apt: >
8     state=present
9     name={{ item }}
10   with_items:
11     - bash-completion
12     - ca-certificates
13     - curl
14     - debconf-utils
15     - etckeeper
16     - git
17     - htop
18     - less
19     - lsb-base
20     - lsb-release
21     - psmisc
22     - net-tools
23     - screen
24     - sudo
25     - telnet-ssl
26     - vim
27
28 - name: install common packages (non Proxmox-VE hosts)
29   tags:
30     - packages
31   apt: >
32     state=present
33     name={{ item }}
34   with_items:
35     - busybox-static
36   when: "ansible_kernel.find('pve') < 1"
37
38 - name: install Linux kernel packages (amd64; non Proxmox-VE hosts, non OpenVZ guest)
39   tags:
40     - packages
41   apt: >
42     state=present
43     name=linux-image-amd64
44   when: "ansible_architecture == 'x86_64' and ansible_kernel.find('pve') < 1 and ansible_virtualization_type != 'openvz'"
45
46 - name: install Linux kernel packages (i386; non Proxmox-VE hosts, non OpenVZ guest)
47   tags:
48     - packages
49   apt: >
50     state=present
51     name=linux-image-686-pae
52   when: "ansible_architecture == 'i386' and ansible_kernel.find('pve') < 1 and ansible_virtualization_type != 'openvz'"