title: Ansible Ignore errors in tasks and fail at end of the playbook if any tasks had errors
body: <p>I am learning Ansible. I have a playbook to clean up resources, and I want the playbook to ignore every error and keep going on till the end , and then fail at the end if there were errors.</p>
  
  <p>I can ignore errors with</p>
  
  <pre><code>  ignore_errors: yes
  </code></pre>
  
  <p>If it was one task, I could do something like ( from ansible error catching)</p>
  
  <pre><code>- name: this command prints FAILED when it fails
    command: /usr/bin/example-command -x -y -z
    register: command_result
    ignore_errors: True
  
  - name: fail the play if the previous command did not succeed
    fail: msg="the command failed"
    when: "'FAILED' in command_result.stderr"
  </code></pre>
  
  <p>How do I fail at the end ? I have several tasks, what would my "When" condition be?</p>