This repository has been archived on 2021-04-04. You can view files and clone it, but cannot push or open issues/pull-requests.
ansible-server/roles/sshd/tasks/config.yml

7 lines
142 B
YAML

---
- name: only allow login with key
lineinfile:
path: /etc/ssh/sshd_config
line: PasswordAuthentication no
notify: restart-sshd