If you just call lineinfile, where will it write them? At the end? What
if your target file has some kind of terminator, can you do a blanket
insertbefore or insertafter? I'm not really grokking the concept of
'backrefs'.
On Friday, August 1, 2014 11:33:36 AM UTC-7, Amr Ali wrote:
>
> You can use lineinfile and with_items
>
> Ex:
>
> - name: Add lines
> lineinfile: dest=/some/file line={{ item }}
> with_items:
> - "add a line"
> - "another line"
> - "and so on"
>
>
--
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/8a411626-485a-478a-805a-bded06019e36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.