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.
22 lines
521 B
YAML
22 lines
521 B
YAML
|
|
- name: integration/stub_connections/mitogen_doas.yml
|
|
hosts: test-targets
|
|
gather_facts: false
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- meta: end_play
|
|
when: not is_mitogen
|
|
|
|
- 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']
|