From a28875c4ccd5a7d64579cec6604dc5a050013273 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 4 Sep 2018 15:21:48 -0400 Subject: [PATCH] Use package task over apt for base-server Package is the generic way of using package managers in Ansible. This will be a noop. Don't use loops for package managers, since we are able to pass lists of packages. This will reduce the number of tasks ansible will do. Change-Id: If7988ba81a6bf851d1b5ec9db6888ba9509ed788 Signed-off-by: Paul Belanger --- playbooks/roles/base-server/tasks/Debian.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/playbooks/roles/base-server/tasks/Debian.yaml b/playbooks/roles/base-server/tasks/Debian.yaml index 785276f27c..cee99d517f 100644 --- a/playbooks/roles/base-server/tasks/Debian.yaml +++ b/playbooks/roles/base-server/tasks/Debian.yaml @@ -1,10 +1,9 @@ - name: Remove packages that make no sense for servers - apt: - name: '{{ item }}' + package: + name: + - whoopsie + - popularity-contest state: absent - loop: - - whoopsie - - popularity-contest - name: Configure file limits copy: