Add validate to ssh config change

This commit is contained in:
Mark Janssen 2024-07-14 20:21:56 +02:00
parent ce1babbeda
commit ea3b17ef2d
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2

View file

@ -11,6 +11,7 @@
ansible.builtin.blockinfile:
path: /etc/ssh/sshd_config
insertafter: EOF
validate: "/usr/sbin/sshd -t -f %s"
block: |-
Match User bank
PasswordAuthentication yes