mirror of
				https://github.com/kevinveenbirkenbach/client-playbook.git
				synced 2025-11-04 01:58:02 +00:00 
			
		
		
		
	Optimized nextloud-client for symbolic links, refactored and solved bugs
This commit is contained in:
		@@ -13,7 +13,7 @@
 | 
			
		||||
  hosts: torbrowser_hosts
 | 
			
		||||
  become: true
 | 
			
		||||
  roles:
 | 
			
		||||
    - torbrowser-games
 | 
			
		||||
    - native-torbrowser
 | 
			
		||||
- name: setup libreoffice hosts
 | 
			
		||||
  hosts: libreoffice_hosts
 | 
			
		||||
  become: true
 | 
			
		||||
 
 | 
			
		||||
@@ -2,3 +2,18 @@
 | 
			
		||||
  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
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								roles/native-nextcloud-client/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								roles/native-nextcloud-client/vars/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
user_home_directory: "/home/{{client_username}}/"
 | 
			
		||||
cloud_directory: "{{user_home_directory}}Clouds/{{cloud_fqdn}}/"
 | 
			
		||||
		Reference in New Issue
	
	Block a user