You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
308 B
YAML

---
- name: Allow ssh on firewall
ufw:
rule: allow
port: 22
proto: tcp
- name: Disable password authentication on ssh
lineinfile:
path: /etc/ssh/sshd_config
regexp: "^PasswordAuthentication "
line: "PasswordAuthentication no"
notify: restart ssh
# TODO Collect SSH Host Keys