summaryrefslogtreecommitdiff
path: root/roles/core/sshd/base/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/sshd/base/tasks/main.yml')
-rw-r--r--roles/core/sshd/base/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
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: