infrastructure/playbooks/roles/software/tasks/docker-rclone-plugin.yml

29 lines
670 B
YAML

- 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