diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-22 15:29:45 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-10 22:31:14 +0100 |
commit | 311893c3bc2bbd18669b5c80bf884e9d25889b74 (patch) | |
tree | 19b9b3664a9d29fcd30cf82ccf82037be5c9f726 /roles/space_server/tasks/sshd.yml | |
parent | 9454fdbff511e965e4fd9eb187b7fe432dcd437e (diff) | |
download | labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.gz labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.xz labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.zip |
space_server: update for Fedora 29
Diffstat (limited to 'roles/space_server/tasks/sshd.yml')
-rw-r--r-- | roles/space_server/tasks/sshd.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/space_server/tasks/sshd.yml b/roles/space_server/tasks/sshd.yml index 63f3367..176ee5a 100644 --- a/roles/space_server/tasks/sshd.yml +++ b/roles/space_server/tasks/sshd.yml @@ -36,9 +36,11 @@ regexp: '{{ item.regexp }}' line: '{{ item.line }}' with_items: + - regexp: '^[# ]*PermitRootLogin' + line: 'PermitRootLogin no' - regexp: '^PasswordAuthentication' line: 'PasswordAuthentication no' - - regexp: '^#*GSSAPIAuthentication' + - regexp: '^[# ]*GSSAPIAuthentication' line: 'GSSAPIAuthentication no' notify: - restart sshd |