From 4069d8a77a73fdd67e32d7b82857cd6262355e46 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Sat, 6 Nov 2021 22:14:20 -0400 Subject: [PATCH] Fix ssh auth config settings labels --- roles/server/tasks/sshd.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/roles/server/tasks/sshd.yaml b/roles/server/tasks/sshd.yaml index 244182c..d741709 100644 --- a/roles/server/tasks/sshd.yaml +++ b/roles/server/tasks/sshd.yaml @@ -7,20 +7,16 @@ replace: "{{ item.value }}" notify: [restart-sshd] loop: - - name: disable root login - regex: "^.*PermitRootLogin (yes|no).*$" + - regex: "^.*PermitRootLogin (yes|no).*$" value: PermitRootLogin no - - name: disable password auth - regex: "^.*PasswordAuthentication (yes|no).*$" + - regex: "^.*PasswordAuthentication (yes|no).*$" value: PasswordAuthentication no - - name: disable challenge response auth - regex: "^.*ChallengeResponseAuthentication (yes|no).*$" + - regex: "^.*ChallengeResponseAuthentication (yes|no).*$" value: ChallengeResponseAuthentication no - - name: disable GSSAPI auth - regex: "^.*GSSAPIAuthentication (yes|no).*$" + - regex: "^.*GSSAPIAuthentication (yes|no).*$" value: GSSAPIAuthentication no loop_control: - label: "{{ item.name }}" + label: "{{ item.value }}" - name: Disable dynamic MOTD on debian systems when: ansible_os_family == "Debian"