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

View File

@@ -1,4 +1,4 @@
application_id: desk-nextcloud
nextcloud_user_home_directory: "/home/{{users.client.username}}/"
nextcloud_user_home_directory: "/home/{{ users[desktop_username].username }}/"
nextcloud_cloud_fqdn: "{{ applications | get_app_conf(application_id, 'cloud_fqdn') }}"
nextcloud_cloud_directory: '{{nextcloud_user_home_directory}}Clouds/{{nextcloud_cloud_fqdn}}/{{users.client.username}}/'
nextcloud_cloud_directory: '{{nextcloud_user_home_directory}}Clouds/{{nextcloud_cloud_fqdn}}/{{ users[desktop_username].username }}/'