ansible/playbooks/restore_docker.yml
2024-05-25 10:40:11 +02:00

9 lines
447 B
YAML

- hosts: nas
name: Restore docker
ignore_unreachable: false
tasks:
- name: Stop running containers
ansible.builtin.shell: /share/ZFS530_DATA/.qpkg/container-station/bin/docker stop rancher-rancher-1
- name: Restore folder
ansible.builtin.shell: 'rsync -arv root@192.168.77.189:/srv/dev-disk-by-uuid-02fbe97a-cd9a-4511-8bd5-21f8516353ee/docker_data/latest/rancher /share/docker_data/'
when: inventory_hostname in groups['nas']