Hello!
Are there any plans to support the content parameter in fetch similar to
how it's done in copy? Would you accept a PR for it?
I need to set the contents of a local file in the playbook directory.
Using copy with delegation to localhost does not work unless I hardcode the
location of the playbook, which is not something i want to do.
Currently I am working around the issue like this:
- name: Generate config file
hosts: 127.0.0.1
connection: local
tasks:
- custom_module
register: dow
- copy:
dest="dow.config
content="{{ dow.config }}"
- fetch:
src: /tmp/dow.config
dest: dow.config
flat: yes
Thanks,
Akos
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAHHcNofoG6rQr8pziO2hvdJ5WB0r2wEPRFkz_d32qSzYw-02PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.