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.
mitogen/tests/ansible/integration/connection_delegation/local_action.yml

38 lines
958 B
YAML

# issue #251: local_action with mitogen_via= builds wrong stack.
- name: integration/connection_delegation/local_action.yml
hosts: cd-newuser-normal-normal
tasks:
- meta: end_play
when: not is_mitogen
- local_action: mitogen_get_stack
become: true
register: out
- assert_equal:
left: out.result
right: [
{
'kwargs': {
'python_path': ["{{ansible_playbook_python}}"],
},
'method': 'local',
},
{
'enable_lru': true,
'kwargs': {
'connect_timeout': 30,
'python_path': ["{{ansible_playbook_python}}"],
'remote_name': null,
'password': null,
'username': 'root',
'sudo_path': 'sudo',
'sudo_args': ['-H', '-S', '-n'],
},
'method': 'sudo',
}
]
tags:
- local_action