|
|
@ -47,17 +47,16 @@ class ModuleReplacer(object):
|
|
|
|
|
|
|
|
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
from ansible.module_utils.basic import *
|
|
|
|
|
|
|
|
|
|
|
|
will result in a template evaluation of
|
|
|
|
... will result in the insertion basic.py into the module
|
|
|
|
|
|
|
|
|
|
|
|
{{ include 'basic.py' }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from the module_utils/ directory in the source tree.
|
|
|
|
from the module_utils/ directory in the source tree.
|
|
|
|
|
|
|
|
|
|
|
|
All modules are required to import at least basic, though there will also
|
|
|
|
All modules are required to import at least basic, though there will also
|
|
|
|
be other snippets.
|
|
|
|
be other snippets.
|
|
|
|
|
|
|
|
|
|
|
|
# POWERSHELL_COMMON will also map to
|
|
|
|
# POWERSHELL_COMMON
|
|
|
|
{{ include 'powershell.ps1' }}
|
|
|
|
|
|
|
|
|
|
|
|
Also results in the inclusion of the common code in powershell.ps1
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|