We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d439fbe commit 3ae69b3Copy full SHA for 3ae69b3
ansible/roles/borg/tasks/main.yml
@@ -73,12 +73,7 @@
73
74
- name: Create borg repository if it does not exist
75
ansible.builtin.shell:
76
- cmd: >
77
- docker run --rm
78
- --network datalab_backend
79
- -v {{ ansible_user_home_dir }}/borgmatic/.ssh:/root/.ssh
80
- -v /data:/data datalab-borgmatic
81
- borgmatic init --encryption=repokey -c /etc/borgmatic/config.yaml
+ cmd: docker run --rm --network datalab_backend -v {{ ansible_user_home_dir }}/borgmatic/.ssh:/root/.ssh -v /data:/data datalab-borgmatic borgmatic init --encryption=repokey -c /etc/borgmatic/config.yaml
82
executable: /bin/bash
83
register: new_borg_repository
84
changed_when: '"Repository already exists" not in new_borg_repository.stdout'
0 commit comments