title: Updating /etc/ansible/hosts with ansible
body: <p>I want to update just one entry from inventory file <code>/etc/ansible/hosts</code> depending on some conditions (e.g. change in network properties). From this snippet of my inventory file, I would like to update the entry under <code>[south_side_hosts]</code>. Is there a way, with ansible, to update this file? I could write a python script to parse and update the file but was hoping to find a solution with ansible.</p>
  
  <pre><code>[south_side_hosts]
  sshost.eng.corp.com
  
  [south_side_ips]
  192.168.100.2
  
  [num_hosts]
  83
  </code></pre>