mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored pc roles and added README.md's with help of ChatGPT. See https://chat.openai.com/share/df22ba6a-76d0-47c2-a8c7-daec3f42b4e5
This commit is contained in:
31
roles/pc-nextcloud/tasks/main.yml
Normal file
31
roles/pc-nextcloud/tasks/main.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
- 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
|
||||
- Workspaces
|
||||
- Books
|
||||
|
||||
- name: Link dump folder
|
||||
ansible.builtin.file:
|
||||
src: "{{cloud_directory}}InstantUpload"
|
||||
dest: "{{user_home_directory}}Dump"
|
||||
owner: "{{client_username}}"
|
||||
group: "{{client_username}}"
|
||||
state: link
|
Reference in New Issue
Block a user