Use package module where possible instead of apt
This commit is contained in:
parent
4ce00a6ac3
commit
79017f02d6
13 changed files with 17 additions and 25 deletions
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install git packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install iptables packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install dns server packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install bird packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install dhcp packages
|
||||
apt:
|
||||
package:
|
||||
name: isc-dhcp-server
|
||||
state: present
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install fastd packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install haveged
|
||||
apt:
|
||||
package:
|
||||
name: haveged
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install radvd packages
|
||||
apt:
|
||||
package:
|
||||
name: radvd
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install tinc packages
|
||||
apt:
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
notify: reload systemd
|
||||
|
|
Loading…
Reference in a new issue