duplicity_playbooks/tasks/source_vars.yml

11 lines
247 B
YAML
Raw Permalink Normal View History

2023-10-14 22:04:39 +00:00
---
- name: Register variable {{ item }}
shell: . {{ shell_script }} && echo ${{ item }}
register: output_var
2023-10-22 08:32:14 +00:00
changed_when: false
2023-10-14 22:04:39 +00:00
- name: Set variable {{ item }}
set_fact:
"{{ item }}": "{{ output_var.stdout }}"
2023-10-22 08:32:14 +00:00
changed_when: false