Add remote docker volumes (using rclone)
This commit is contained in:
parent
f20b2596d0
commit
a2c680f3e8
6 changed files with 39 additions and 5 deletions
playbooks/roles/software/tasks
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
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
- name: Install docker
|
||||
ansible.builtin.import_tasks: docker.yml
|
||||
- name: Install docker rclone plugin
|
||||
ansible.builtin.import_tasks: docker-rclone-plugin.yml
|
||||
|
||||
- name: Install jq and bzip2
|
||||
ansible.builtin.apt:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue