From cbd5fba44a28997e0e2900b805ee82f9a73262ba Mon Sep 17 00:00:00 2001 From: nicoo Date: Wed, 15 Nov 2017 00:23:16 +0100 Subject: [PATCH] ansible/roles/base: Remove unnecessary filter delimiters Those trigger a warning in Ansible 2.4 and later --- ansible/roles/base/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/base/tasks/main.yaml b/ansible/roles/base/tasks/main.yaml index 0a2f94d..2831db1 100644 --- a/ansible/roles/base/tasks/main.yaml +++ b/ansible/roles/base/tasks/main.yaml @@ -11,7 +11,7 @@ dest: /etc/ssh/sshd_config regexp: "^AllowUsers" line: "AllowUsers {{ ' '.join([ 'root' ] | union(sshd_allowusers_group | default([])) | union(sshd_allowusers_host | default([]))) }}" - when: "{{ sshd_allowusers_set | default(true) }}" + when: sshd_allowusers_set | default(true) notify: restart ssh - name: limit allowed users (2/2) @@ -19,7 +19,7 @@ dest: /etc/ssh/sshd_config regexp: "^AllowUsers" state: absent - when: "not {{ sshd_allowusers_set | default(true) }}" + when: not sshd_allowusers_set | default(true) notify: restart ssh - name: Set authorized keys for root user -- 1.7.10.4