title: How to extract a specific value from input list as part of Ansible template file
body: <p>I have the following input list (as part of inputfile)</p>
  <pre class="lang-yaml prettyprint-override"><code>postgres_create_users:
          - {role: user1, password: password1}
          - {role: user2, password: password2}
          - {role: user3, password: password3}
          - {role: user4, password: password4}
  </code></pre>
  <p>As part of Jinja template file, I need to extract the password of <code>user4</code>.
  How can this be done?</p>
  <p>Jinja file</p>
  <pre><code>insights.jdbc.password={% for item in {{ postgres_create_users }} ??? %}
  </code></pre>