|
|
|
@ -64,6 +64,7 @@ _ACTION_DEBUG = add_internal_fqcns(('debug', ))
|
|
|
|
|
_ACTION_IMPORT_PLAYBOOK = add_internal_fqcns(('import_playbook', ))
|
|
|
|
|
_ACTION_IMPORT_ROLE = add_internal_fqcns(('import_role', ))
|
|
|
|
|
_ACTION_IMPORT_TASKS = add_internal_fqcns(('import_tasks', ))
|
|
|
|
|
_ACTION_INCLUDE = add_internal_fqcns(('include', ))
|
|
|
|
|
_ACTION_INCLUDE_ROLE = add_internal_fqcns(('include_role', ))
|
|
|
|
|
_ACTION_INCLUDE_TASKS = add_internal_fqcns(('include_tasks', ))
|
|
|
|
|
_ACTION_INCLUDE_VARS = add_internal_fqcns(('include_vars', ))
|
|
|
|
@ -73,11 +74,12 @@ _ACTION_SET_FACT = add_internal_fqcns(('set_fact', ))
|
|
|
|
|
_ACTION_SETUP = add_internal_fqcns(('setup', ))
|
|
|
|
|
_ACTION_HAS_CMD = add_internal_fqcns(('command', 'shell', 'script'))
|
|
|
|
|
_ACTION_ALLOWS_RAW_ARGS = _ACTION_HAS_CMD + add_internal_fqcns(('raw', ))
|
|
|
|
|
_ACTION_ALL_INCLUDES = _ACTION_INCLUDE_TASKS + _ACTION_INCLUDE_ROLE
|
|
|
|
|
_ACTION_ALL_INCLUDE_IMPORT_TASKS = _ACTION_INCLUDE_TASKS + _ACTION_IMPORT_TASKS
|
|
|
|
|
_ACTION_ALL_INCLUDES = _ACTION_INCLUDE + _ACTION_INCLUDE_TASKS + _ACTION_INCLUDE_ROLE
|
|
|
|
|
_ACTION_ALL_INCLUDE_IMPORT_TASKS = _ACTION_INCLUDE + _ACTION_INCLUDE_TASKS + _ACTION_IMPORT_TASKS
|
|
|
|
|
_ACTION_ALL_PROPER_INCLUDE_IMPORT_ROLES = _ACTION_INCLUDE_ROLE + _ACTION_IMPORT_ROLE
|
|
|
|
|
_ACTION_ALL_PROPER_INCLUDE_IMPORT_TASKS = _ACTION_INCLUDE_TASKS + _ACTION_IMPORT_TASKS
|
|
|
|
|
_ACTION_ALL_INCLUDE_ROLE_TASKS = _ACTION_INCLUDE_ROLE + _ACTION_INCLUDE_TASKS
|
|
|
|
|
_ACTION_ALL_INCLUDE_TASKS = _ACTION_INCLUDE + _ACTION_INCLUDE_TASKS
|
|
|
|
|
_ACTION_FACT_GATHERING = _ACTION_SETUP + add_internal_fqcns(('gather_facts', ))
|
|
|
|
|
_ACTION_WITH_CLEAN_FACTS = _ACTION_SET_FACT + _ACTION_INCLUDE_VARS
|
|
|
|
|
|
|
|
|
@ -187,16 +189,3 @@ for setting in config.get_configuration_definitions():
|
|
|
|
|
|
|
|
|
|
for warn in config.WARNINGS:
|
|
|
|
|
_warning(warn)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _Constants(type(sys)):
|
|
|
|
|
|
|
|
|
|
_constants = {}
|
|
|
|
|
|
|
|
|
|
def __getitem__(self, name):
|
|
|
|
|
return _constants[name]
|
|
|
|
|
|
|
|
|
|
def __setitem__(self, name, value):
|
|
|
|
|
return _constants[name] = value
|
|
|
|
|
|
|
|
|
|
sys.modules[__name__] = _Constants('constants')
|
|
|
|
|