diff options
Diffstat (limited to 'roles/nextcloud/occ.yml')
-rw-r--r-- | roles/nextcloud/occ.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/roles/nextcloud/occ.yml b/roles/nextcloud/occ.yml index c881d30..e6f41f1 100644 --- a/roles/nextcloud/occ.yml +++ b/roles/nextcloud/occ.yml @@ -63,7 +63,7 @@ - occ - user:add - --password-from-env - - "--display-name={{ item.fullname }}" + - "--display-name={{ item.display_name }}" - "{{ item.username }}" chdir: "{{ httpd_pre__chroot_dir }}/nextcloud" environment: @@ -78,3 +78,18 @@ - '"already exists" not in nextcloud__result_create_application_users.stdout' changed_when: - '"already exists" not in nextcloud__result_create_application_users.stdout' + +- name: update application users + ansible.builtin.command: + argv: + - "{{ nextcloud__php_bin }}" + - occ + - user:setting + - "{{ item.0.username }}" + - settings + - "{{ item.1 }}" + - "{{ item.0[item.1] }}" + chdir: "{{ httpd_pre__chroot_dir }}/nextcloud" + with_nested: + - "{{ nextcloud__users }}" + - ["email"] |