- name: ensure we can use fact on delegated host for connection info hosts: localhost gather_facts: no tasks: - add_host: name=f31 bogus_user=notme ansible_connection=ssh ansible_host=4.2.2.2 - name: if not overriding with delegated host info, will not be unreachable ping: timeout: 5 delegate_to: f31 ignore_errors: true ignore_unreachable: true register: delping - name: ensure that the expected happened assert: that: - delping is failed