blob: 167039842326be584123eec9df144fbf41152ea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
- 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
|