CT 114: fail2ban-Assertion auf 'Status for the jail: sshd' korrigiert
fail2ban-client status sshd liefert keinen 'Jail list'-Block (der kommt nur von status ohne Argument); gegen die reale Ausgabe geprueft. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
@@ -28,6 +28,6 @@
|
|||||||
- name: Verify the sshd jail is active
|
- name: Verify the sshd jail is active
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
that:
|
that:
|
||||||
- litecoin_fail2ban_sshd_status.stdout is search('Status')
|
- litecoin_fail2ban_sshd_status.stdout is search('Status for the jail: sshd')
|
||||||
- litecoin_fail2ban_sshd_status.stdout is search('Jail list:.*sshd')
|
- litecoin_fail2ban_sshd_status.stdout is search('Journal matches')
|
||||||
when: not ansible_check_mode
|
when: not ansible_check_mode
|
||||||
|
|||||||
Reference in New Issue
Block a user