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.
32 lines
804 B
YAML
32 lines
804 B
YAML
6 years ago
|
# OSA: Verify delegating the connection back to the container succeeds.
|
||
|
|
||
|
- name: integration/delegation/osa_delegate_to_self.yml
|
||
|
hosts: osa-container-1
|
||
|
vars:
|
||
|
target: osa-container-1
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- meta: end_play
|
||
|
when: not is_mitogen
|
||
|
|
||
|
- mitogen_get_stack:
|
||
|
delegate_to: "{{target}}"
|
||
|
register: out
|
||
|
|
||
|
- assert:
|
||
|
that: |
|
||
|
out.result == [
|
||
|
{
|
||
|
'kwargs': {
|
||
|
'container': 'osa-container-1',
|
||
|
'docker_path': None,
|
||
|
'kind': 'lxc',
|
||
|
'lxc_info_path': None,
|
||
|
'machinectl_path': None,
|
||
|
'python_path': None,
|
||
|
'username': None,
|
||
|
},
|
||
|
'method': 'setns',
|
||
|
},
|
||
|
]
|