On 22. juni 2016 20:32, [email protected] wrote:
I am using the command:
- local_action: copy content="The installation failed"
dest=~/ansible/ansible_log.txt

However, when I do it again:
- local_action: copy content="Contact me for assistance"
dest=~/ansible/ansible_log.txt

It overwrites the new text with the old text. What I want to do is append
to the file instead of replacing the previous text.

copy can't do that, check out lineinfile
https://docs.ansible.com/ansible/lineinfile_module.html

--
Kai Stian Olstad

--
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/576AE23F.40308%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to