title: Ansible how to ignore unreachable hosts before ansible 2.7.x
body: <p>I'm using ansible to run a command against multiple servers at once.  I want to ignore any hosts that fail because of the '<code>"SSH Error: data could not be sent to remote host \"1.2.3.4\". Make sure this host can be reached over ssh"</code>' error because some of the hosts in the list will be offline.  How can I do this?  Is there a default option in ansible to ignore offline hosts without failing the playbook? Is there an option to do this in a single <code>ansible</code> cli argument outside of a playbook?</p>
  
  <p>Update:  I am aware that the <a href="https://stackoverflow.com/questions/53961158/ansible-ignore-unreachable-is-not-working"><code>ignore_unreachable: true</code></a> works for ansible 2.7 or greater, but I am working in an ansible 2.6.1 environment.</p>