added workaround for ssh-server patching breaks /run/ssh
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
0835a05b08
commit
39507838e6
|
@ -9,6 +9,14 @@
|
||||||
- rule_1.2.2.1
|
- rule_1.2.2.1
|
||||||
- NIST800-53R5_SI-2
|
- NIST800-53R5_SI-2
|
||||||
- patch
|
- patch
|
||||||
ansible.builtin.package:
|
block:
|
||||||
name: "*"
|
- name: "1.2.2.1 | PATCH | Ensure updates, patches, and additional security software are installedi | Update"
|
||||||
state: latest
|
ansible.builtin.package:
|
||||||
|
name: "*"
|
||||||
|
state: latest
|
||||||
|
register: discovered_pkg_updates
|
||||||
|
|
||||||
|
# Resetting connection as ssh stops if patched reset connection kickstarts it
|
||||||
|
- name: "1.2.2.1 | PATCH | Ensure updates, patches, and additional security software are installed | reset ansible connection if ssh updated"
|
||||||
|
when: "'openssh-server' in discovered_pkg_updates.stdout"
|
||||||
|
ansible.builtin.meta: reset_connection
|
||||||
|
|
Loading…
Reference in New Issue