Commit 7b946d91 authored by Nico's avatar Nico
Browse files

add SSH role

This will for now only disable ssh password logins, when the variable
ssh_disable_password_login is set to yes.
parent 78af4bf3
......@@ -4,3 +4,4 @@
- users
- autoupdate
- revproxy
- ssh
ssh_disable_password_login: yes
ssh_disable_password_login: no
- name: restart ssh
name: ssh
state: restarted
- name: Disable SSH password login
regexp: "^#?PasswordAuthentication"
line: "PasswordAuthentication no"
path: /etc/ssh/sshd_config
- restart ssh
when: ssh_disable_password_login
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment