resolvers: fix empty sshd validation command in post-quantum task

The 'Validate sshd configuration' task had ansible.builtin.command with no
command, so it always errored (one of the following is required:
_raw_params, cmd, argv), tripping the rescue that reverts the drop-in. The
post-quantum KexAlgorithms hardening therefore never applied. Run sshd -t
to validate before restart as intended.
This commit is contained in:
Graham McIntire 2026-06-07 10:38:46 -05:00
parent c64f59929e
commit 43730bf5e7
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -81,7 +81,7 @@
register: pq_sshd_dropin
- name: Validate sshd configuration
ansible.builtin.command:
ansible.builtin.command: /usr/sbin/sshd -t
changed_when: false
- name: Restart sshd to apply key-exchange change