Skip to content

Commit 3ae69b3

Browse files
authored
Fix line breaks in borg command (#64)
1 parent d439fbe commit 3ae69b3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

ansible/roles/borg/tasks/main.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@
7373

7474
- name: Create borg repository if it does not exist
7575
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
76+
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
8277
executable: /bin/bash
8378
register: new_borg_repository
8479
changed_when: '"Repository already exists" not in new_borg_repository.stdout'

0 commit comments

Comments
 (0)