- - name: Disable empty password sshd login
- lineinfile: dest=/etc/ssh/sshd_config regexp="^#?PermitEmptyPasswords" line="PermitEmptyPasswords no"
- notify: restart sshd
- - name: Disable password sshd login
- lineinfile: dest=/etc/ssh/sshd_config regexp="^#?PasswordAuthentication" line="PasswordAuthentication no"
- notify: restart sshd
|