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.
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
5 years ago
|
- hosts: localhost
|
||
|
gather_facts: no
|
||
|
collections:
|
||
|
- testns.testcoll
|
||
|
vars:
|
||
|
# redirect connection
|
||
|
ansible_connection: testns.testcoll.redirected_local
|
||
|
tasks:
|
||
|
- assert:
|
||
|
that: ('data' | testns.testcoll.testfilter) == 'data_via_testfilter_from_userdir'
|
||
|
|
||
|
# redirect module (multiple levels)
|
||
|
- multilevel1:
|
||
|
# redirect action
|
||
|
- uses_redirected_action:
|
||
|
# redirect import (consumed via action)
|
||
|
- uses_redirected_import:
|
||
|
# redirect lookup
|
||
|
- assert:
|
||
|
that: lookup('formerly_core_lookup') == 'mylookup_from_user_dir'
|
||
|
# redirect filter
|
||
|
- assert:
|
||
|
that: ('yes' | formerly_core_filter) == True
|
||
|
# legacy filter should mask redirected
|
||
|
- assert:
|
||
|
that: ('' | formerly_core_masked_filter) == 'hello from overridden formerly_core_masked_filter'
|
||
|
# redirect test
|
||
|
- assert:
|
||
|
that:
|
||
|
- "'stuff' is formerly_core_test('tuf')"
|
||
|
- "'hello override' is formerly_core_masked_test"
|
||
|
# redirect module (formerly internal)
|
||
|
- formerly_core_ping:
|
||
|
# redirect module from collection (with subdir)
|
||
|
- testns.testcoll.module_subdir.subdir_ping_module:
|
||
|
# redirect module_utils plugin (consumed via module)
|
||
|
- uses_core_redirected_mu:
|
||
|
# deprecated module (issues warning)
|
||
|
- deprecated_ping:
|
||
|
# redirect module (internal alias)
|
||
|
- aliased_ping:
|
||
|
# redirect module (cycle detection, fatal)
|
||
|
# - looped_ping:
|
||
|
|
||
|
# removed module (fatal)
|
||
|
# - dead_ping:
|