title: How do you Ensure a Line Exists and is Uncommented with Ansible LineinFile?
body: <p>How do you ensure a specific line exists in a file and is uncommented with ansible's `lineinfile'</p>
  
  <p>The line I want uncommented (in <code>.htaccess</code>):</p>
  
  <pre><code>#php_flag display_errors on
  </code></pre>
  
  <p>I have used the following:</p>
  
  <pre><code>  - name: Make sure PHP Errors are turned on
      lineinfile: dest={{ www_path }}/.htaccess line="php_flag display_errors on"
  </code></pre>