diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-30 12:26:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-30 12:26:39 +0300 |
commit | be4a3d1b5d8c91ba95060658a276de4a8e9af2e2 (patch) | |
tree | 82ebf4dde0fbb425677b75c52c02802286debf89 /roles | |
parent | 483434bd239302ba018486e6e30f29f40b524413 (diff) | |
download | debian-ansible-be4a3d1b5d8c91ba95060658a276de4a8e9af2e2.tar.gz |
Fix: drop jinja2 templating from a "when:"
Diffstat (limited to 'roles')
-rw-r--r-- | roles/unix_users/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 }}" |