ansible package

Subpackages

Submodules

ansible.constants module

ansible.constants.mk_boolean(value)[source]
ansible.constants.shell_expand(path, expand_relative_paths=False)[source]

shell_expand is needed as os.path.expanduser does not work when path is None, which is the default for ANSIBLE_PRIVATE_KEY_FILE

ansible.constants.get_config(p, section, key, env_var, default, boolean=False, integer=False, floating=False, islist=False, isnone=False, ispath=False, ispathlist=False, istmppath=False, expand_relative_paths=False)[source]

return a configuration variable with casting

ansible.constants.load_config_file()[source]

Load Config File order(first found is used): ENV, CWD, HOME, /etc/ansible

ansible.release module