stop using with_items for apt in ubuntu/roles/common/tasks/main.yml
This commit is contained in:
parent
26d749a670
commit
32190262bc
@ -17,8 +17,11 @@
|
|||||||
- restart rsyslog
|
- restart rsyslog
|
||||||
- restart cron
|
- restart cron
|
||||||
- name: Install required packages
|
- name: Install required packages
|
||||||
apt: pkg={{ item }} state=latest
|
apt:
|
||||||
with_items:
|
name: "{{ packages }}"
|
||||||
|
state: latest
|
||||||
|
vars:
|
||||||
|
packages:
|
||||||
- most
|
- most
|
||||||
- zsh
|
- zsh
|
||||||
- vim
|
- vim
|
||||||
@ -43,8 +46,11 @@
|
|||||||
- chrony
|
- chrony
|
||||||
- unattended-upgrades
|
- unattended-upgrades
|
||||||
- name: Remove packages we do not need
|
- name: Remove packages we do not need
|
||||||
apt: pkg={{ item }} state=absent
|
apt:
|
||||||
with_items:
|
name: "{{ packages }}"
|
||||||
|
state: absent
|
||||||
|
vars:
|
||||||
|
packages:
|
||||||
- exim4-daemon-light
|
- exim4-daemon-light
|
||||||
- consolekit
|
- consolekit
|
||||||
- snapd
|
- snapd
|
||||||
|
Loading…
Reference in New Issue
Block a user