File: missing_module.yml

package info (click to toggle)
python-mitogen 0.3.25~a2-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,220 kB
  • sloc: python: 21,989; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (34 lines) | stat: -rw-r--r-- 985 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
29
30
31
32
33
34
- name: integration/runner/missing_module.yml
  hosts: test-targets[0]
  connection: local
  tasks:
    - name: Run missing_module
      connection: local
      environment:
        ANSIBLE_STRATEGY:  "{{ lookup('env', 'ANSIBLE_STRATEGY') | mandatory }}"
        ANSIBLE_VERBOSITY: "{{ ansible_verbosity }}"
      vars:
        ansible_python_interpreter: "{{ ansible_playbook_python }}"
      command: |
        ansible
        {% for inv in ansible_inventory_sources %}
        -i "{{ inv }}"
        {% endfor %}
        test-targets
        -m missing_module
      args:
        chdir: ../..
      register: out
      changed_when: false
      check_mode: false
      ignore_errors: true

    - assert:
        that: |
          'The module missing_module was not found in configured module paths' in out.stdout
          or "Cannot resolve 'missing_module' to an action or module" in out.stdout
        fail_msg: |
          out={{ out }}
  tags:
    - local
    - missing_module