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/fa97e963-8f14-4213-9efb-5f8535b3b09f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to