From bc061dff941cf1d5bfc35e301321b4f3f23cbfcc Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Tue, 23 Jun 2020 21:45:56 +0200 Subject: [PATCH] apt: use list instead of with_items --- roles/apt/tasks/main.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/roles/apt/tasks/main.yml b/roles/apt/tasks/main.yml index 490c916..df74225 100644 --- a/roles/apt/tasks/main.yml +++ b/roles/apt/tasks/main.yml @@ -3,21 +3,17 @@ - name: Configure apt not to install recommends packages copy: src=apt-recommends.conf dest=/etc/apt/apt.conf.d/40recommends -- name: Install apt https transport plugin - apt: name=apt-transport-https - -- name: Install debian-goodies for checkrestart - apt: name={{ item }} - with_items: - - debian-goodies - - lsof +- name: Install apt related tools + apt: + name: + - apt-transport-https + - debian-goodies + - lsof + - unattended-upgrades - name: Configure periodic apt updates copy: src=apt-periodic.conf dest=/etc/apt/apt.conf.d/10periodic -- name: Install unattended-upgrades - apt: name=unattended-upgrades - - name: Configure unattended-upgrades copy: src=unattended-upgrades.conf dest=/etc/apt/apt.conf.d/50unattended-upgrades