You can try to loop using with_items: and storing the regexs, lines, etc in variables.


On 09/04/14 16:49, Michael Baydoun wrote:
I need to insert many lines of configuration and must use lineinfile or something similar. The particular application in question also writes changes over time to other parts of the same file.

What is the best, cleanest way to accomplish this?
Is there a solution other than to string a bunch of lineinfile modules together?
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/80361127-7f35-4b21-8aa3-101efc777e53%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/80361127-7f35-4b21-8aa3-101efc777e53%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Swiss Mobility Solutions <http://www.swissmobilitysolutions.com/>


 Antonio Marin

IT Team Lead

Swiss Mobility Solutions

Office Telephone +34 966370055 <tel:+34966370055>

Skype antonymcs <skype:antonymcs?call>

Location Av. Locutor Vicente Hipólito 39
03540 Alicante Spain <https://maps.google.com/maps?q=Swiss+Mobility+Solutions+S.L,+Alicante,+Spain&hl=en&sll=37.0625,-95.677068&sspn=76.273886,78.837891&oq=swiss+mobility+so&hq=swiss+mobility+solutions+sl&hnear=Alicante,+Valencian+Community,+Spain&t=m&z=13>

Email <mailto:[email protected]> LinkedIn <http://es.linkedin.com/in/antonymcs> Website <http://www.swissmobilitysolutions.com/>

--
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/53455E68.1070900%40swissms.ch.
For more options, visit https://groups.google.com/d/optout.

<<inline: email_smslogo.png>>

<<inline: email_icon_phone.png>>

<<inline: email_icon_skype.png>>

<<inline: email_icon_location.png>>

<<inline: email_icon_email.png>>

<<inline: email_icon_linkedin.png>>

<<inline: email_icon_website.png>>

Reply via email to