cast inventory values to int, fixes comparison and speeds up ansible runs
This commit is contained in:
parent
a021ef5919
commit
eb37e03c76
1 changed files with 2 additions and 2 deletions
|
|
@ -31,9 +31,9 @@
|
||||||
|
|
||||||
# Set quota for folders where it does not match
|
# Set quota for folders where it does not match
|
||||||
- name: set group folder quota
|
- name: set group folder quota
|
||||||
command: "nextcloud-occ groupfolders:quota {{ (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).id }} {{ item.quota }}"
|
command: "nextcloud-occ groupfolders:quota {{ (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).id }} {{ item.quota | int }}"
|
||||||
with_items: "{{ nextcloud.groupfolders }}"
|
with_items: "{{ nextcloud.groupfolders }}"
|
||||||
when: (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).quota != item.quota
|
when: (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).quota != item.quota | int
|
||||||
vars:
|
vars:
|
||||||
search_key: "mount_point"
|
search_key: "mount_point"
|
||||||
search_val: "{{ item.name }}"
|
search_val: "{{ item.name }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue