From be4a3d1b5d8c91ba95060658a276de4a8e9af2e2 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 30 May 2018 12:26:39 +0300 Subject: Fix: drop jinja2 templating from a "when:" --- roles/unix_users/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/unix_users/tasks/main.yml b/roles/unix_users/tasks/main.yml index 19f0dac..00c49fd 100644 --- a/roles/unix_users/tasks/main.yml +++ b/roles/unix_users/tasks/main.yml @@ -59,7 +59,7 @@ - name: give sudo access with_items: "{{ unix_users }}" - when: "{{ item.sudo|default(False) }}" + when: item.sudo is defined and item.sudo copy: content: "{{ item.username }} ALL=(ALL:ALL) NOPASSWD: ALL" dest: "/etc/sudoers.d/{{ item.username }}" -- cgit v1.2.1