title: add multiple lines to multiple files in a directory using ansible
body: <p>I would like to add some lines to multiple .conf files in a directory e.g. <code>/etc/abc/xabc/</code>.</p>
  
  <p>The two lines I would like to add are below:</p>
  
  <pre><code>Composite=1
  Extension=1
  </code></pre>
  
  <p>I would like these lines to appear after the line containing <code>[protocol]</code>.</p>
  
  <p>How can I do this?</p>
  
  <p>I am not sure how to proceed on this one; see my attempt below - even though I know it's erroneous:</p>
  
  <pre><code>- name: add line
  
  - lineinfile:
      dest: "{{ item }}"
      regexp: "{{ item.regexp }}"
      line: "{{ item.line }}"
      insertafter: [Protocol]
    with_items: xxxxxx
  </code></pre>
  
  <p>I assume I have to also register the output of the (<code>/etc/abc/xabc/</code>) directory?</p>