File: custom_bash_hashbang_argument.yml

package info (click to toggle)
python-mitogen 0.3.37-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,728 kB
  • sloc: python: 24,644; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (28 lines) | stat: -rw-r--r-- 905 bytes parent folder | download
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
26
27
28
# https://github.com/dw/mitogen/issues/291
- name: integration/runner/custom_bash_hashbang_argument.yml
  hosts: test-targets
  tasks:
    # Ansible releases after June 2024 quote ansible_python_interpreter
    # https://github.com/ansible/ansible/pull/83365
    - meta: end_play
      when:
        - not is_mitogen
        - ansible_version_major_minor_patch is version('2.17.1', '>=', strict=True)

    - custom_bash_old_style_module:
        foo: true
      with_sequence: start=1 end={{end|default(1)}}
      register: out
      vars:
        ansible_bash_interpreter: "/usr/bin/env RUN_VIA_ENV=yes bash"

    - assert:
        that: |
          (not out.changed) and
          (not out.results[0].changed) and
          out.results[0].msg == 'Here is my input' and
          out.results[0].run_via_env == "yes"
        fail_msg: |
          out={{ out }}
  tags:
    - custom_bash_hashbang_argument