forked from bitlair/ansible
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:
|
||||
path: /etc/ssh/sshd_config
|
||||
insertafter: EOF
|
||||
validate: "/usr/sbin/sshd -t -f %s"
|
||||
block: |-
|
||||
Match User bank
|
||||
PasswordAuthentication yes
|
||||
|
|
Loading…
Add table
Reference in a new issue