reverting my handling of the missing sshd_config and going back to ignoring errors. the failed_when logic was failing on a real node (but fine in molecule)

This commit is contained in:
Geoff Jacobs
2022-07-26 06:41:39 +10:00
parent 8855452c79
commit 4d84174b7b

View File

@@ -17,8 +17,4 @@
regexp: '^[Cc]iphers'
line: "Ciphers chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc"
insertbefore: "BOF"
register: ssh_cypher_results
failed_when: # No sshd == no problem
- ssh_cypher_results.rc > 0
- ssh_cypher_results.stderr is defined
- "'Destination /etc/ssh/sshd_config does not exist' not in ssh_cypher_results.stderr" # fails for errors other than this one
ignore_errors: yes # No sshd == no problem