title: Ansible: If a file exists on remote host, echo out the contents of the file
body: <p>I have an ansible playbook, and one of it tasks depends on if a file exists, if it does, I want to trigger next task and echo out the contents of the file.</p>
  
  <p>here's block of the code:</p>
  
  <pre><code>---
  - name: If Pass File Exists
    stat:
      path: /var/lib/File
    register: result
  
  - name: Read Password
    when: result.changed
    shell: cat /var/lib/File
    changed_when: false
    register: adm_pass
  
  - name: Echo Password
    when: adm_pass.changed
    debug:
      var: adm_pass.stdout
  </code></pre>
  
  <p>But In this case last task skips because it doesn't change, it's status is ok. How can I achieve my last task?</p>