diff --git a/ansible/sshd_config.yml b/ansible/sshd_config.yml index 0e0f15d..6e3dc6a 100644 --- a/ansible/sshd_config.yml +++ b/ansible/sshd_config.yml @@ -47,6 +47,11 @@ regexp="^(#)?UseDNS" line="UseDNS no" notify: restart sshd + - name: UsePAM no + lineinfile: dest={{conf}} + regexp="^(#)?UsePAM" + line="UsePAM no" + notify: restart sshd handlers: - name: restart sshd