Use replace module.

https://docs.ansible.com/ansible/2.3/replace_module.html

On Tue, May 22, 2018 at 3:57 PM, Gowtham Nakulan <[email protected]>
wrote:

> I am trying to replace a word in file using Ansible.
>
> Any inputs how to acheive it.
>
>
> --
> 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/c9ab4349-f5a5-4ffa-99fb-25c123466af7%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/c9ab4349-f5a5-4ffa-99fb-25c123466af7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Regards,
Abhay Srivastava
---------------------------
Mob-9160512000

-- 
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/CAPKgz8VqztgAc6OtVF8mrDYQTgwUHhrOUt03jgY2wR0zxHBdSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to