Modifying a configuration value in multiple hosts

Hi Team,
I need to change a configuration value in a file located at the same path in 100 servers. can I do this task by an adhoc Ansible command?

Yes, you can use lineinfile or replace module for same.

Hi Inderpreet,

Thank you for the reply!

I looked at both the module examples and see that we need pass in some parameters. Now my task is to replace a valueA of a key in a file with another valueB. I am not sure how to look for a key and replace its value.