Thanks kylix,
Where would the append go?

Sent from my iPhone. Please excuse any typos.


> On Feb 25, 2019, at 6:10 PM, Kylix Kumar <[email protected]> wrote:
> 
> <image1.jpeg>
> 
>> On Feb 25, 2019, at 6:01 PM, '[email protected]' via Ansible Project 
>> <[email protected]> wrote:
>> 
>> Thanks Luca, I sorta thought that was it, could you give a quick example on 
>> how the file would look?
>> 
>> Sent from my iPhone. Please excuse any typos.
>> 
>> 
>>> On Feb 25, 2019, at 5:46 PM, Luca Cazzaniga <[email protected]> wrote:
>>> 
>>> Hi try the module lineinfile, see the manual page at 
>>> https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html
>>> 
>>> Il giorno mar 26 feb 2019, 02:30 lpescatore via Ansible Project 
>>> <[email protected]> ha scritto:
>>>> Hi, 
>>>> I want to add some stuff to my /etc/hosts file. 
>>>> For instance, if my /etc/hosts says "server.corp", I want to append that 
>>>> in all my machines to where it says "server.corp.company.com". Then I want 
>>>> it to save.
>>>> What is the best module for that , and can you tell me what the play might 
>>>> look like?
>>>> -- 
>>>> 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/cb9896bd-1639-4690-b8d7-457c5ab75617%40googlegroups.com.
>>>> For more options, visit https://groups.google.com/d/optout.
>>> 
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Ansible Project" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/ansible-project/mYI1oZ8hAyA/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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/CAPz4CsxFGgeTEkh%2BHr1cXDxOF1trst3pJnvFY%2BU%2BraCVHnFu7Q%40mail.gmail.com.
>>> For more options, visit https://groups.google.com/d/optout.
>> -- 
>> 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/F0747137-FE47-43DF-9CA4-DA19943DEBDA%40google.com.
>> For more options, visit https://groups.google.com/d/optout.
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ansible-project/mYI1oZ8hAyA/unsubscribe.
> To unsubscribe from this group and all its topics, 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/41AA737F-28EB-4F29-8FDF-71B2E87937C5%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/05A2A994-7FE9-4881-9EC7-95F56D103C7A%40google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to