Add remote docker volumes (using rclone)
This commit is contained in:
		
							parent
							
								
									f20b2596d0
								
							
						
					
					
						commit
						a2c680f3e8
					
				
					 6 changed files with 39 additions and 5 deletions
				
			
		
							
								
								
									
										29
									
								
								playbooks/roles/software/tasks/docker-rclone-plugin.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								playbooks/roles/software/tasks/docker-rclone-plugin.yml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,29 @@ | |||
| - name: Install fuse system packages | ||||
|   ansible.builtin.apt: | ||||
|     pkg: | ||||
|       - fuse | ||||
|     state: present | ||||
|     update_cache: true | ||||
|   become: true | ||||
| 
 | ||||
| - name: Create the rclone plugin config dir | ||||
|   ansible.builtin.file: | ||||
|     path: "/var/lib/docker-plugins/rclone/config" | ||||
|     state: directory | ||||
|     mode: "0755" | ||||
|   become: true | ||||
| 
 | ||||
| - name: Create the rclone plugin cache dir | ||||
|   ansible.builtin.file: | ||||
|     path: "/var/lib/docker-plugins/rclone/cache" | ||||
|     state: directory | ||||
|     mode: "0755" | ||||
|   become: true | ||||
| 
 | ||||
| - name: Install rclone plugin | ||||
|   community.docker.docker_plugin: | ||||
|     alias: rclone | ||||
|     plugin_name: rclone/docker-volume-rclone:amd64 | ||||
|     plugin_options: | ||||
|       args: "-v" | ||||
|     state: enable | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue