On 28. juni 2016 17:59, sreenivas narayan wrote:
In short: how to insert a file using lineinfile after string "{{
inventory_hostname }}"

Something like this

- lineinfile:
    dest=/tmp/disk-ec2-list.txt
    regexp="^{{ wddrdata }}"
    line="{{ wddrdata }}"
    insertafter="{{ inventory_hostname }}"

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

Reply via email to