![]() ![]() The directory of the inventory source in which the inventory_hostname was first defined inventory_file The short version of inventory_hostname inventory_dir The inventory name for the ‘current’ host being iterated over in the play inventory_hostname_short List of groups the current host is part of groupsĪ dictionary/map with all the groups in inventory and each group has the list of hosts that belong to it hostvarsĪ dictionary/map with all the hosts in inventory and variables assigned to them inventory_hostname ansible_verbosityĬurrent verbosity setting for Ansible ansible_versionĭictionary/map that contains information about the current running version of ansible, it has the following keys: full, major, minor, revision and string. ansible_search_pathĬurrent search path for action plugins and lookups, in other words, where we search for relative paths when you do template: src=myfile ansible_skip_tagsĬontents of the -skip-tags CLI option, which specifies which tags will be skipped for the current run. Note that if -tags is not passed, this variable will default to. In the format of llection ansible_run_tagsĬontents of the -tags CLI option, which specifies which tags will be included for the current run. The name of the collection the task that is executing is a part of. The fully qualified collection role name, in the format of _name ansible_collection_name The names of the roles currently imported into the current play, or roles referenced as dependencies of the roles The path to the python interpreter being used by Ansible on the controller ansible_role_names This list does not contain the role names that are The names of the roles currently imported into the current play. List of all the hosts that were targeted by the play ansible_play_role_names Failed/Unreachable hosts are excluded from this list. List of hosts in the current play run, not limited by the serial. Failed/Unreachable hosts are not considered ‘active’. List of active hosts in the current play run limited by the serial, aka ‘batch’. Please refer to ansible_parent_role_names for the order of items in this list. When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles paths, with the most recent role (in other words, the role that included/imported this role) being the first item in the list. If role B then includes role C, the list becomes. It is also possible that a specific role exists more than once in this list.įor example: When role A includes role B, inside role B, ansible_parent_role_names will equal to. When multiple inclusions occur, this list lists the last role (in other words, the role that included this role) as the first item in the list. ![]() When the current role is being executed by means of an include_role or import_role action, this variable contains a list of all parent roles, with the most recent role (in other words, the role that included/imported this role) being the first item in the list. The name of the value provided to loop_control.index_var. The name of the value provided to loop_control.loop_var. List of sources used as inventory ansible_limitĬontents of the -limit CLI option for the current execution of Ansible ansible_loopĪ dictionary/map containing extended loop information when enabled via loop_control.extended ansible_loop_var Integer reflecting the number of maximum forks available to this run ansible_inventory_sources ![]() The names of the roles currently imported into the current play as dependencies of other plays ansible_diff_modeīoolean that indicates if we are in diff mode or not ansible_forks #LIST MAGICAL NAMES FULL#The full path of used Ansible configuration file ansible_dependent_role_names ansible_check_modeīoolean that indicates if we are in check mode or not ansible_config_file These variables cannot be set directly by the user Ansible will always override them to reflect internal state.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |