Skip to content

Commit

Permalink
fixes borg_source_directories not being overwritten by set_fact
Browse files Browse the repository at this point in the history
  • Loading branch information
terroirman committed Feb 11, 2024
1 parent ad35507 commit 7dbf19d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/noauto_install_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@
- name: Modify borg_source_directories to reflect path in container
ansible.builtin.set_fact:
borg_source_directories: >-
borg_source_directories_tmp: >-
{%- set sources = [] -%}
{%- for source in borg_source_directories -%}
{%- set _ = sources.append("/sources" + source) -%}
{%- endfor -%}
{{ sources }}
- name: Overwrite borg_source_directories fact
ansible.builtin.set_fact:
borg_source_directories: "{{ borg_source_directories_tmp }}"

- name: Modify borg_repository to reflect path in container
ansible.builtin.set_fact:
borg_repository: >-
Expand Down

0 comments on commit 7dbf19d

Please sign in to comment.