File: mitogen_doas.yml

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (25 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

- 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_python_interpreter: "{{ ansible_playbook_python }}"
      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