Added variable desktop_username to identify the user on a single user pc workstation

This commit is contained in:
2025-07-17 16:10:39 +02:00
parent 9a8ef5e047
commit 6d4b7227ce
6 changed files with 13 additions and 13 deletions

View File

@@ -7,8 +7,8 @@
ansible.builtin.file:
src: "{{nextcloud_cloud_directory}}{{item}}"
dest: "{{nextcloud_user_home_directory}}{{item}}"
owner: "{{users.client.username}}"
group: "{{users.client.username}}"
owner: "{{ users[desktop_username].username }}"
group: "{{ users[desktop_username].username }}"
state: link
force: yes
ignore_errors: true # Just temporary @todo remove
@@ -29,6 +29,6 @@
ansible.builtin.file:
src: "{{nextcloud_cloud_directory}}InstantUpload"
dest: "{{nextcloud_user_home_directory}}Dump"
owner: "{{users.client.username}}"
group: "{{users.client.username}}"
owner: "{{ users[desktop_username].username }}"
group: "{{ users[desktop_username].username }}"
state: link