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 cron
|
||||
- name: Install required packages
|
||||
apt: pkg={{ item }} state=latest
|
||||
with_items:
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
state: latest
|
||||
vars:
|
||||
packages:
|
||||
- most
|
||||
- zsh
|
||||
- vim
|
||||
@ -43,8 +46,11 @@
|
||||
- chrony
|
||||
- unattended-upgrades
|
||||
- name: Remove packages we do not need
|
||||
apt: pkg={{ item }} state=absent
|
||||
with_items:
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
state: absent
|
||||
vars:
|
||||
packages:
|
||||
- exim4-daemon-light
|
||||
- consolekit
|
||||
- snapd
|
||||
|
Loading…
Reference in New Issue
Block a user