Refactoring Draft

This commit is contained in:
2022-08-19 21:39:23 +02:00
parent 83b62a8510
commit a209f193e2
55 changed files with 128 additions and 134 deletions

View File

@@ -0,0 +1,21 @@
- name: Install nextcloud-client
community.general.pacman:
name: nextcloud-client
state: present
- name: Link homefolders to cloud
ansible.builtin.file:
src: "{{cloud_directory}}{{item}}"
dest: "{{user_home_directory}}{{item}}"
owner: "{{client_username}}"
group: "{{client_username}}"
state: link
loop:
- Templates
- Documents
- Videos
- Pictures
- Music
- Desktop
- Software
- Downloads

View File

@@ -0,0 +1,2 @@
user_home_directory: "/home/{{client_username}}/"
cloud_directory: "{{user_home_directory}}Clouds/{{cloud_fqdn}}/{{client_username}}/"