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 <pabelanger@redhat.com>
This commit is contained in:
parent
24c67ecb0e
commit
a28875c4cc
@ -1,10 +1,9 @@
|
|||||||
- name: Remove packages that make no sense for servers
|
- name: Remove packages that make no sense for servers
|
||||||
apt:
|
package:
|
||||||
name: '{{ item }}'
|
name:
|
||||||
state: absent
|
|
||||||
loop:
|
|
||||||
- whoopsie
|
- whoopsie
|
||||||
- popularity-contest
|
- popularity-contest
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Configure file limits
|
- name: Configure file limits
|
||||||
copy:
|
copy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user