mirror of https://github.com/ansible/ansible.git
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.
34 lines
666 B
YAML
34 lines
666 B
YAML
7 years ago
|
- name: call old WANTS_JSON module
|
||
|
legacy_only_old_way:
|
||
|
register: old_way
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- old_way.data == 'success'
|
||
|
|
||
|
- name: call module with only legacy requires
|
||
|
legacy_only_new_way:
|
||
|
register: new_way
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- new_way.data == 'success'
|
||
|
|
||
|
- name: call module with local module_utils
|
||
|
uses_local_utils:
|
||
|
register: local_utils
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- local_utils.data == "ValueFromCustomFunction"
|
||
|
|
||
|
- name: call module that imports bogus Ansible-named module_utils
|
||
|
uses_bogus_utils:
|
||
|
ignore_errors: true
|
||
|
register: bogus_utils
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- bogus_utils | failed
|
||
|
- bogus_utils.msg | search("Could not find")
|