7 lines
142 B
YAML
7 lines
142 B
YAML
---
|
|
- name: only allow login with key
|
|
lineinfile:
|
|
path: /etc/ssh/sshd_config
|
|
line: PasswordAuthentication no
|
|
notify: restart-sshd
|