use condition instead of empty default list
This commit is contained in:
parent
e78a79ab68
commit
b2543c02a0
@ -7,6 +7,9 @@
|
|||||||
permissions: "{{ item.permissions }}"
|
permissions: "{{ item.permissions }}"
|
||||||
state: "{{ item.state | default('query') }}"
|
state: "{{ item.state | default('query') }}"
|
||||||
recursive: "{{ item.recursive | default('no') }}"
|
recursive: "{{ item.recursive | default('no') }}"
|
||||||
with_items: "{{ ucs_filesystem_acl | default([]) }}"
|
with_items: "{{ ucs_filesystem_acl }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.path }}"
|
||||||
|
when: ucs_filesystem_acl is defined
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
subpath: "{{ item.subpath | default(omit) }}"
|
subpath: "{{ item.subpath | default(omit) }}"
|
||||||
ou: "{{ item.ou | default(omit) }}"
|
ou: "{{ item.ou | default(omit) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
with_items: "{{ ucs_system_groups | default([]) }}"
|
with_items: "{{ ucs_system_groups }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
||||||
|
when: ucs_system_groups is defined
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user