Commit 2b449f76 authored by julian.gethmann's avatar julian.gethmann

Allow root to login with ssh-key

parent 1ad0e319
......@@ -44,12 +44,12 @@
backup: yes
notify: restart sshd
- name: Disable remote root login
- name: Allow remote root login
become: yes
lineinfile:
dest: /etc/ssh/sshd_config
regexp: ".*PermitRootLogin.*"
line: "PermitRootLogin no"
line: "PermitRootLogin without-password"
backup: yes
notify: restart sshd
......
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