summaryrefslogtreecommitdiff
path: root/roles/sshd/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/sshd/tasks/main.yml')
-rw-r--r--roles/sshd/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/sshd/tasks/main.yml b/roles/sshd/tasks/main.yml
index 1991564..1c099ad 100644
--- a/roles/sshd/tasks/main.yml
+++ b/roles/sshd/tasks/main.yml
@@ -2,9 +2,9 @@
ansible.builtin.lineinfile:
dest: /etc/ssh/sshd_config
state: present
- regexp: '^#?PasswordAuthentication'
- line: 'PasswordAuthentication no'
- validate: "/usr/sbin/sshd -t -f %s"
+ regexp: ^#?PasswordAuthentication
+ line: PasswordAuthentication no
+ validate: /usr/sbin/sshd -t -f %s
owner: root
group: root
mode: u+r,g+r,o+r