mirror of
https://github.com/ansible/awx.git
synced 2026-01-31 17:18:59 -03:30
Backports previously approved corrections. (#15121)
* Backports previously approved corrections. * Deleted a blank line in inventories line 100
This commit is contained in:
@@ -94,10 +94,10 @@ In some situations, you can modify the following:
|
||||
|
||||
- A new Host manually created on Inventory w/ inventory sources
|
||||
- In Groups that were created as a result of inventory source syncs
|
||||
- Variables on Host and Group are changeable
|
||||
|
||||
Hosts associated with the Smart Inventory are manifested at view time. If the results of a Smart Inventory contains more than one host with identical hostnames, only one of the matching hosts will be included as part of the Smart Inventory, ordered by Host ID.
|
||||
|
||||
Variables on Host and Group are not changeable even as the local system admin user.
|
||||
|
||||
.. _ug_host_filters:
|
||||
|
||||
|
||||
@@ -961,6 +961,8 @@ Extra Variables
|
||||
|
||||
When you pass survey variables, they are passed as extra variables (``extra_vars``) within AWX. This can be tricky, as passing extra variables to a job template (as you would do with a survey) can override other variables being passed from the inventory and project.
|
||||
|
||||
By default, ``extra_vars`` are marked as ``!unsafe`` unless you specify them on the job template’s Extra Variables section. These are trusted, because they can only be added by users with enough privileges to add or edit a Job Template. For example, nested variables do not expand when entered as a prompt, as the Jinja brackets are treated as a string. For more information about unsafe variables, see `unsafe or raw strings <https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_advanced_syntax.html#unsafe-or-raw-strings>`_.
|
||||
|
||||
For example, say that you have a defined variable for an inventory for ``debug = true``. It is entirely possible that this variable, ``debug = true``, can be overridden in a job template survey.
|
||||
|
||||
To ensure that the variables you need to pass are not overridden, ensure they are included by redefining them in the survey. Keep in mind that extra variables can be defined at the inventory, group, and host levels.
|
||||
@@ -979,7 +981,7 @@ If specifying the ``ALLOW_JINJA_IN_EXTRA_VARS`` parameter, refer to the :ref:`AW
|
||||
The Job Template extra variables dictionary is merged with the Survey variables.
|
||||
|
||||
|
||||
Here are some simplified examples of extra_vars in YAML and JSON formats:
|
||||
Here are some simplified examples of ``extra_vars`` in YAML and JSON formats:
|
||||
|
||||
The configuration in YAML format:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user