# Check Config File

**URL:** <https://forum.ansible.com/t/check-config-file/25599>\
**Category:** Ansible Project\
**Created:** [September 26, 2017, 2:28pm UTC](https://forum.ansible.com/t/check-config-file/25599 "2017-09-26T14:28:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel.melin](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@samuel.melin](https://forum.ansible.com/u/samuel.melin)\
**Post date:** [September 26, 2017, 2:28pm UTC](https://forum.ansible.com/t/check-config-file/25599/1 "2017-09-26T14:28:06Z")

</div>

Hi all

I’m newbie on Ansible and i need to check some parameters in a config file.  
For example i need to check if the _remote\_user_ is “user” in ansible.cfg

How i can symply do that with a playbook ?

Thx in advance,  
Samuel

---

<div class="post-metadata">

**Author:** ![samuel.melin](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@samuel.melin](https://forum.ansible.com/u/samuel.melin)\
**Post date:** [September 26, 2017, 2:49pm UTC](https://forum.ansible.com/t/check-config-file/25599/2 "2017-09-26T14:49:14Z")

</div>

I think the good way to follow is :

[http://docs.ansible.com/ansible/latest/lineinfile\_module.html](http://docs.ansible.com/ansible/latest/lineinfile_module.html)
