added workaround for ssh-server patching breaks /run/ssh

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-02-21 11:15:52 +00:00
parent 0835a05b08
commit 39507838e6
No known key found for this signature in database
GPG Key ID: 997FF7FE93AEB5B9
1 changed files with 11 additions and 3 deletions

View File

@ -9,6 +9,14 @@
- rule_1.2.2.1
- NIST800-53R5_SI-2
- patch
ansible.builtin.package:
name: "*"
state: latest
block:
- name: "1.2.2.1 | PATCH | Ensure updates, patches, and additional security software are installedi | Update"
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