Use package module where possible instead of apt

This commit is contained in:
Tobias Hachmer 2017-10-11 17:53:20 +02:00
parent 4ce00a6ac3
commit 79017f02d6
13 changed files with 17 additions and 25 deletions

View file

@ -1,6 +1,6 @@
---
- name: install git packages
apt:
package:
name: "{{ item }}"
state: present
with_items:

View file

@ -1,10 +1,8 @@
---
- name: install batman-module and linux headers
apt:
state: present
package:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 21600
state: present
with_items:
- linux-headers-amd64
- batman-adv-dkms

View file

@ -1,6 +1,6 @@
---
- name: install iptables packages
apt:
package:
name: "{{ item }}"
state: present
with_items:

View file

@ -1,10 +1,8 @@
---
- name: ensure common packages are installed
apt:
state: present
package:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 21600
state: present
with_items: "{{ packages }}"
- name: ensure vim is default editor

View file

@ -1,10 +1,8 @@
---
- name: ensure dirmngr and apt-transport-https are installed
apt:
state: present
package:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 21600
state: present
with_items:
- dirmngr
- apt-transport-https

View file

@ -1,6 +1,6 @@
---
- name: install dns server packages
apt:
package:
name: "{{ item }}"
state: present
notify: reload systemd

View file

@ -1,6 +1,6 @@
---
- name: install bird packages
apt:
package:
name: "{{ item }}"
state: present
notify: reload systemd

View file

@ -1,6 +1,6 @@
---
- name: install dhcp packages
apt:
package:
name: isc-dhcp-server
state: present

View file

@ -1,6 +1,6 @@
---
- name: install fastd packages
apt:
package:
name: "{{ item }}"
state: present
notify: reload systemd

View file

@ -1,6 +1,6 @@
---
- name: install haveged
apt:
package:
name: haveged
state: present
notify: reload systemd

View file

@ -6,11 +6,9 @@
state: stopped
- name: install ntp packages
apt:
state: present
package:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 21600
state: present
with_items:
- ntp
- ntp-doc

View file

@ -1,6 +1,6 @@
---
- name: install radvd packages
apt:
package:
name: radvd
state: present
notify: reload systemd

View file

@ -1,6 +1,6 @@
---
- name: install tinc packages
apt:
package:
name: "{{ item }}"
state: present
notify: reload systemd