- name: integration/stub_connections/mitogen_doas.yml hosts: test-targets gather_facts: false tasks: - include_tasks: ../_mitogen_only.yml - custom_python_detect_environment: vars: ansible_connection: mitogen_doas ansible_doas_exe: stub-doas.py ansible_user: someuser register: out - debug: var=out.env.ORIGINAL_ARGV - assert: that: - out.env.THIS_IS_STUB_DOAS == '1' - (out.env.ORIGINAL_ARGV|from_json)[1:3] == ['-u', 'someuser'] fail_msg: | out={{ out }} tags: - mitogen_doas - mitogen_only