mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-11-04 03:20:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			667 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			667 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
- name: Changing permission
 | 
						|
  ansible.builtin.shell: 'chown -R root. /share/docker_data/'
 | 
						|
  become: true
 | 
						|
  when: inventory_hostname in groups['raspberrypi5']
 | 
						|
- name: Syncing all
 | 
						|
  ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
 | 
						|
  #ansible.builtin.shell: 'rsync -avh --delete /share/docker_data/{mailu2,webhub,nginx,heimdall} root@192.168.77.238:/share/docker_data/ --exclude="home-assistant.log*" --exclude="gitlab/logs/*"'
 | 
						|
  #ansible.builtin.shell: 'ls -la'
 | 
						|
  when: inventory_hostname in groups['nas'] |