Improve split integration test. (#78738)

* Omit redundant fact gathering.

* Add connection type to split test.

* Add user info to split integration test.
pull/78739/head
Matt Clay 2 years ago committed by GitHub
parent 62221a3be2
commit 2e5e8026cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,2 +1,3 @@
context/target
shippable/posix/group1
gather_facts/no

@ -13,15 +13,21 @@
- name: Build non-split status message
set_fact:
message: "
{{ control_host.ansible_facts.ansible_user_id }}@{{ control_host.ansible_facts.ansible_hostname }} on
{{ control_host.ansible_facts.ansible_distribution }} {{ control_host.ansible_facts.ansible_distribution_version }}
{{ control_host.ansible_facts.ansible_python.executable }} ({{ control_host.ansible_facts.ansible_python_version }}) ->
{{ control_host.ansible_facts.ansible_python.executable }} ({{ control_host.ansible_facts.ansible_python_version }})
--[ {{ ansible_connection }} ]-->
{{ managed_host.ansible_facts.ansible_user_id }} on
{{ managed_host.ansible_facts.ansible_python.executable }} ({{ managed_host.ansible_facts.ansible_python_version }})"
when: split is success and split.stat.exists
- name: Build split status message
set_fact:
message: "
{{ control_host.ansible_facts.ansible_user_id }}@{{ control_host.ansible_facts.ansible_hostname }} on
{{ control_host.ansible_facts.ansible_distribution }} {{ control_host.ansible_facts.ansible_distribution_version }}
{{ control_host.ansible_facts.ansible_python.executable }} ({{ control_host.ansible_facts.ansible_python_version }}) ->
{{ control_host.ansible_facts.ansible_python.executable }} ({{ control_host.ansible_facts.ansible_python_version }})
--[ {{ ansible_connection }} ]-->
{{ managed_host.ansible_facts.ansible_user_id }}@{{ managed_host.ansible_facts.ansible_hostname }} on
{{ managed_host.ansible_facts.ansible_distribution }} {{ managed_host.ansible_facts.ansible_distribution_version }}
{{ managed_host.ansible_facts.ansible_python.executable }} ({{ managed_host.ansible_facts.ansible_python_version }})"
when: split is not success or not split.stat.exists

Loading…
Cancel
Save