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.
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
# Each case is followed by mitogen_via= case to test hostvars method.
|
|
|
|
|
|
# When no ansible_connection= is set, transport comes via ansible.cfg ("smart"
|
|
# is parsed away to either paramiko or ssh).
|
|
- name: integration/transport_config/transport.yml
|
|
hosts: tc-transport-unset
|
|
tasks:
|
|
- include_tasks: ../_mitogen_only.yml
|
|
- {mitogen_get_stack: {}, register: out}
|
|
- assert_equal:
|
|
left: out.result[0].method
|
|
right: "ssh"
|
|
tags:
|
|
- mitogen_only
|
|
|
|
- hosts: tc-transport-local
|
|
vars: {mitogen_via: tc-transport-unset}
|
|
tasks:
|
|
- include_tasks: ../_mitogen_only.yml
|
|
- {mitogen_get_stack: {}, register: out}
|
|
- assert_equal:
|
|
left: out.result[0].method
|
|
right: "ssh"
|
|
- assert_equal:
|
|
left: out.result[1].method
|
|
right: "local"
|
|
tags:
|
|
- mitogen_only
|
|
|
|
|
|
# ansible_connection=local
|
|
|
|
- hosts: tc-transport-local
|
|
tasks:
|
|
- include_tasks: ../_mitogen_only.yml
|
|
- {mitogen_get_stack: {}, register: out}
|
|
- assert_equal:
|
|
left: out.result[0].method
|
|
right: "local"
|
|
tags:
|
|
- mitogen_only
|
|
|
|
- hosts: tc-transport-unset
|
|
vars: {mitogen_via: tc-transport-local}
|
|
tasks:
|
|
- include_tasks: ../_mitogen_only.yml
|
|
- {mitogen_get_stack: {}, register: out}
|
|
- assert_equal:
|
|
left: out.result[0].method
|
|
right: "local"
|
|
- assert_equal:
|
|
left: out.result[1].method
|
|
right: "ssh"
|
|
tags:
|
|
- mitogen_only
|