Add validate to ssh config change
This commit is contained in:
parent
ce1babbeda
commit
ea3b17ef2d
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.blockinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
insertafter: EOF
|
insertafter: EOF
|
||||||
|
validate: "/usr/sbin/sshd -t -f %s"
|
||||||
block: |-
|
block: |-
|
||||||
Match User bank
|
Match User bank
|
||||||
PasswordAuthentication yes
|
PasswordAuthentication yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue