You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/delegate_to/delegate_with_fact_from_del...

19 lines
521 B
YAML

- 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