If all parts of the file come from Ansible, you can make roles store facts on 
the target, and then use template to render those facts.
If you can't do that, maybe that config supports some kind of conf.d include? 
Then you'd only manage the include line with lineinfile.

John Oliver <[email protected]> napisał:
>Erm, how?  It seems to me that template is the exact opposite of what I
>
>want to do.  A template is for when the vast majority of a file is
>known 
>beforehand and you want to insert variables into boilerplate.
>
>On Friday, November 21, 2014 10:04:24 AM UTC-8, Brian Coca wrote:
>>
>> you can manage all that with the template module 
>>
>
>-- 
>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/5576b05f-5f94-48b9-b9fc-2a58c41f0bd0%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
Wysłane za pomocą K-9 Mail.

-- 
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/5104e360-6a41-43ab-ac23-8dcafe0997a6%40email.android.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to