Hello -
Is there a way to modify the content of a registered variable? I have a shared role that logs output of my deployments.
tasks/main.yml
`
- name: Log {{ filename }} changes
blockinfile:
dest: “{{ log_dir }}/{{ pb_logname }}”
content: |
Hello -
Is there a way to modify the content of a registered variable? I have a shared role that logs output of my deployments.
tasks/main.yml
`
The only way I’ve been able to do something like this, assuming I understand correctly, is to write the value to a vars file in the playbook, then load that vars file when you need it later on in the playbook.