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 - name: install git packages
apt: package:
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: with_items:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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