mirror of
				https://gitlab.sectorq.eu/jaydee/ansible.git
				synced 2025-10-30 18:01:11 +01:00 
			
		
		
		
	111
This commit is contained in:
		
							
								
								
									
										11
									
								
								playbooks/sync_all.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								playbooks/sync_all.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| - hosts: containers | ||||
|   name: Sync mailu,ha,... | ||||
|   ignore_unreachable: false | ||||
|   tasks: | ||||
|     - name: Changing permission | ||||
|       ansible.builtin.shell: 'chown -R admin. /share/docker_data/' | ||||
|       become: true | ||||
|       when: inventory_hostname in groups['raspberry'] or inventory_hostname in groups['raspberrypi5'] | ||||
|     - name: Syncing all | ||||
|       ansible.builtin.shell: 'rsync -ra /share/docker_data/{mailu2,ha,gitlab,semaphore,webhub,nginx} admin@192.168.77.238:/share/docker_data/' | ||||
|       when: inventory_hostname in groups['nas'] | ||||
		Reference in New Issue
	
	Block a user
	 jaydee
					jaydee