diff --git a/roles/bank/tasks/login.yaml b/roles/bank/tasks/login.yaml index cd0f9ba..7ed568e 100644 --- a/roles/bank/tasks/login.yaml +++ b/roles/bank/tasks/login.yaml @@ -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