update cache before using groups
This commit is contained in:
parent
bea7ae178d
commit
78de59fbfe
1 changed files with 7 additions and 0 deletions
|
|
@ -47,6 +47,13 @@
|
||||||
search_key: "mount_point"
|
search_key: "mount_point"
|
||||||
search_val: "{{ item.name }}"
|
search_val: "{{ item.name }}"
|
||||||
|
|
||||||
|
# We search for some random name so that the LDAP data cache gets updated
|
||||||
|
- name: update LDAP cache
|
||||||
|
command: "/usr/bin/php occ ldap:search random_string_to_update_cache"
|
||||||
|
args:
|
||||||
|
chdir: /var/www/nextcloud
|
||||||
|
changed_when: False
|
||||||
|
|
||||||
# Set folder permissions if they are not correct yet
|
# Set folder permissions if they are not correct yet
|
||||||
- name: Set folder permissions
|
- name: Set folder permissions
|
||||||
command: "/usr/bin/php occ groupfolders:group {{ (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).id }} {{ item.1 }} write share delete"
|
command: "/usr/bin/php occ groupfolders:group {{ (group_folders | selectattr(search_key, 'equalto', search_val) | list | first).id }} {{ item.1 }} write share delete"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue