mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added variable desktop_username to identify the user on a single user pc workstation
This commit is contained in:
@@ -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
|
@@ -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 }}/'
|
||||
|
Reference in New Issue
Block a user