mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 01:04:13 +00:00
use loop for package names
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
898bf73178
commit
a0abefbc29
1 changed files with 4 additions and 3 deletions
|
@ -24,11 +24,12 @@
|
|||
|
||||
- name: Block update of Grub and kernel, because of error
|
||||
ansible.builtin.dpkg_selections:
|
||||
name:
|
||||
- grub-pc
|
||||
- linux-image-generic
|
||||
name: "{{ item }}"
|
||||
selection: hold
|
||||
when: ansible_os_family == 'Debian'
|
||||
loop:
|
||||
- grub-pc
|
||||
- linux-image-generic
|
||||
|
||||
- name: Run the equivalent of "apt-get update && apt-get upgrade"
|
||||
ansible.builtin.apt:
|
||||
|
|
Loading…
Reference in a new issue