Verified Commit ff4ebdaf authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

archusers: Fix a warning

[WARNING]: when statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: item not in "{{ arch_users }}"
parent 32a0c062
......@@ -9,7 +9,7 @@
name: "{{ item.key }}"
group: users
groups: "{{ item.value.groups | join(',') }}"
comment: "{{ item.value.name}}"
comment: "{{ item.value.name }}"
state: present
with_dict: "{{ arch_users }}"
......@@ -33,5 +33,5 @@
- name: disable ssh keys of disabled users
file: path="/home/{{ item }}/.ssh/authorized_keys" state=absent
when: item not in "{{ arch_users }}"
when: item not in arch_users
with_items: "{{ all_users.files | map(attribute='path') | map('basename') | list }}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment