Hi,
I'm wondering whether it's possible to use a Jinja2 template as a source in
a patch task.
(Documentation of the module:
http://docs.ansible.com/ansible/patch_module.html)
An example:
- name: Copy patch template to remote system
template:
src: mypatch.patch.j2
dest: /tmp/mypatch.patch
- name: Apply patch
patch:
src: /tmp/mypatch.patch
dest: /some/destination/to/patch
remote_src: yes
I would like to replace this with:
- name: Apply patch
patch:
src: mypatch.patch.j2
dest: /some/destination/to/patch
Is this possible? If yes, what is right way to do this?
Is there someone who can help me?
Thank you!
Best regards,
Christopher
--
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/35f1fbda-7104-4dd0-8eed-ef30f5abfd68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.