Update access targets to be optional parameter

Add server role to iridium
This commit is contained in:
2021-11-15 19:53:19 -05:00
parent be9c658589
commit 0c95df3066
3 changed files with 55 additions and 38 deletions

View File

@@ -39,7 +39,7 @@
- name: Add administrators to docker group
become: true
when: item.admin | default(false) and 'cluster' in item.targets
when: item.admin | default(false) and 'cluster' in (item.targets | default([]))
ansible.builtin.user:
name: "{{ item.name }}"
group: "{{ item.name }}"