mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 01:04:13 +00:00
remove update tasks, since we use updated images
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
This commit is contained in:
parent
e54c541d3b
commit
3ba52e59e2
1 changed files with 0 additions and 17 deletions
|
@ -22,23 +22,6 @@
|
|||
ansible_python_interpreter: /usr/bin/python3
|
||||
when: ansible_facts.distribution == 'Fedora'
|
||||
|
||||
- name: Block update of Grub and kernel, because of error # noqa ignore-errors
|
||||
ansible.builtin.dpkg_selections:
|
||||
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"
|
||||
ansible.builtin.apt:
|
||||
upgrade: safe
|
||||
update_cache: true
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install required tools on SuSE
|
||||
# cannot use zypper module, since it depends on python-xml
|
||||
ansible.builtin.command: zypper -n install python-xml
|
||||
|
|
Loading…
Reference in a new issue