Skip to content

Commit

Permalink
add more excluded packages
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Schurz <[email protected]>
  • Loading branch information
schurzi committed Feb 4, 2024
1 parent a0abefb commit e54c541
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions molecule/os_hardening_vm/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
ansible_python_interpreter: /usr/bin/python3
when: ansible_facts.distribution == 'Fedora'

- name: Block update of Grub and kernel, because of error
- name: Block update of Grub and kernel, because of error # noqa ignore-errors
ansible.builtin.dpkg_selections:
name: "{{ item }}"
name: "{{ item }}"
selection: hold
when: ansible_os_family == 'Debian'
ignore_errors: true
loop:
- grub-pc
- initramfs-tools
- linux-image-generic

- name: Run the equivalent of "apt-get update && apt-get upgrade"
Expand Down

0 comments on commit e54c541

Please sign in to comment.