ansible  2.9.27
About: Ansible is an IT Configuration Management, Deployment \
About: Ansible (2.x) is an IT Configuration Management, Deployment & Orchestration tool.
ansible download page.
  Fossies Dox: ansible-2.9.27.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ansible.context Namespace Reference


def _init_global_context (cli_args)
def cliargs_deferred_get (key, default=None, shallowcopy=False)


 __metaclass__ = type
tuple __all__ = ('CLIARGS',)
 CLIARGS = CLIArgs({})

Function Documentation

◆ _init_global_context()

def ansible.context._init_global_context (   cli_args)
Initialize the global context objects

Definition at line 32 of file

References ansible.context._init_global_context().

Referenced by ansible.context._init_global_context().

◆ cliargs_deferred_get()

def ansible.context.cliargs_deferred_get (   key,
  default = None,
  shallowcopy = False 
Closure over getting a key from CLIARGS with shallow copy functionality

Primarily used in ``FieldAttribute`` where we need to defer setting the default
until after the CLI arguments have been parsed

This function is not directly bound to ``CliArgs`` so that it works with
``CLIARGS`` being replaced

Definition at line 38 of file

References ansible.context.cliargs_deferred_get(), and ansible.module_utils.common.collections.is_sequence().

Referenced by ansible.context.cliargs_deferred_get().

Variable Documentation

◆ __all__

tuple ansible.context.__all__ = ('CLIARGS',)

Definition at line 23 of file

◆ __metaclass__

ansible.context.__metaclass__ = type

Definition at line 6 of file


ansible.context.CLIARGS = CLIArgs({})

Definition at line 27 of file