apt: use list instead of with_items

This commit is contained in:
Markus 2020-06-23 21:45:56 +02:00
parent bad435fad4
commit bc061dff94

View File

@ -3,21 +3,17 @@
- name: Configure apt not to install recommends packages - name: Configure apt not to install recommends packages
copy: src=apt-recommends.conf dest=/etc/apt/apt.conf.d/40recommends copy: src=apt-recommends.conf dest=/etc/apt/apt.conf.d/40recommends
- name: Install apt https transport plugin - name: Install apt related tools
apt: name=apt-transport-https apt:
name:
- name: Install debian-goodies for checkrestart - apt-transport-https
apt: name={{ item }} - debian-goodies
with_items: - lsof
- debian-goodies - unattended-upgrades
- lsof
- name: Configure periodic apt updates - name: Configure periodic apt updates
copy: src=apt-periodic.conf dest=/etc/apt/apt.conf.d/10periodic copy: src=apt-periodic.conf dest=/etc/apt/apt.conf.d/10periodic
- name: Install unattended-upgrades
apt: name=unattended-upgrades
- name: Configure unattended-upgrades - name: Configure unattended-upgrades
copy: src=unattended-upgrades.conf dest=/etc/apt/apt.conf.d/50unattended-upgrades copy: src=unattended-upgrades.conf dest=/etc/apt/apt.conf.d/50unattended-upgrades