File: missing_module.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 (36 lines) | stat: -rw-r--r-- 1,077 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
35
36
- name: integration/runner/missing_module.yml
  hosts: test-targets[0]
  connection: local
  tasks:
    - name: Run missing_module
      connection: local
      environment:
        ANSIBLE_CALLBACK_RESULT_FORMAT: json
        ANSIBLE_LOAD_CALLBACK_PLUGINS: "false"
        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