summaryrefslogtreecommitdiff
path: root/roles/core/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'roles/core/sshd')
-rw-r--r--roles/core/sshd/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/core/sshd/tasks/main.yml b/roles/core/sshd/tasks/main.yml
index ef0e9a81..f07bef54 100644
--- a/roles/core/sshd/tasks/main.yml
+++ b/roles/core/sshd/tasks/main.yml
@@ -27,7 +27,7 @@
notify: restart ssh
- name: limit allowed users
- when: not sshd_allow_any_user
+ when: not sshd_allow_any_user | bool
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers\\s"
@@ -35,7 +35,7 @@
notify: restart ssh
- name: allow any user
- when: sshd_allow_any_user
+ when: sshd_allow_any_user | bool
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^AllowUsers\\s"