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.
|
|
|
|
|
|
|
- name: integration/stub_connections/mitogen_sudo.yml
|
|
|
|
hosts: test-targets
|
|
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
|
|
- include_tasks: ../_mitogen_only.yml
|
|
|
|
|
|
|
|
- custom_python_detect_environment:
|
|
|
|
vars:
|
|
|
|
ansible_connection: mitogen_sudo
|
|
|
|
ansible_user: root
|
|
|
|
ansible_become_exe: stub-sudo.py
|
|
|
|
ansible_become_flags: -H --type=sometype --role=somerole
|
|
|
|
register: out
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that: out.env.THIS_IS_STUB_SUDO == '1'
|
|
|
|
fail_msg: out={{out}}
|
|
|
|
|
|
|
|
- assert_equal:
|
|
|
|
left: (out.env.ORIGINAL_ARGV|from_json)[1:9]
|
|
|
|
right: ['-u', 'root', '-H', '-r', 'somerole', '-t', 'sometype', '--']
|
|
|
|
tags:
|
|
|
|
- mitogen_only
|
|
|
|
- mitogen_sudo
|