summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml')
-rw-r--r--test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml b/test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml
new file mode 100644
index 0000000..1670398
--- /dev/null
+++ b/test/integration/targets/delegate_to/delegate_with_fact_from_delegate_host.yml
@@ -0,0 +1,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