From 9e2a869452982f2584c09fac020d4a59223f49aa Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 22 Apr 2021 16:39:43 +0200 Subject: cosmetic changes --- roles/core/sshd/base/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/core/sshd') diff --git a/roles/core/sshd/base/tasks/main.yml b/roles/core/sshd/base/tasks/main.yml index cf5862fa..15ae6032 100644 --- a/roles/core/sshd/base/tasks/main.yml +++ b/roles/core/sshd/base/tasks/main.yml @@ -28,7 +28,7 @@ notify: restart ssh - name: limit allowed users - when: not sshd_allow_any_user | bool + when: not (sshd_allow_any_user | bool) lineinfile: dest: /etc/ssh/sshd_config regexp: "^AllowUsers\\s" @@ -45,7 +45,7 @@ notify: restart ssh - name: limit allowed groups - when: not sshd_allow_any_group | bool + when: not (sshd_allow_any_group | bool) block: - name: verify sshd allow-groups are configured assert: -- cgit v1.2.3