此内容没有您所选择的语言版本。
Appendix A. Automation execution environments precedence
Identify and control the exact automation execution environment applied to your jobs by tracing the precedence hierarchy, ensuring you can troubleshoot environment mismatches or configure accurate defaults across your templates, projects, and organizations.
Project updates always use the control plane automation execution environments by default.
However, jobs use the first available automation execution environments as follows:
-
The
execution_environmentdefined on the template (job template or inventory source) that created the job. -
The
default_environmentdefined on the project that the job uses. -
The
default_environmentdefined on the organization of the job. -
The
default_environmentdefined on the organization of the inventory the job uses. -
The current
DEFAULT_EXECUTION_ENVIRONMENTsetting (configurable atapi/v2/settings/system/) -
Any image from the
GLOBAL_JOB_EXECUTION_ENVIRONMENTSsetting. - Any other global execution environment.
- Where an execution environment is not available, the Default execution environment can be used. However, you must select this, as the system does not automatically provide a default environment.
- If more than one execution environment fits a criteria (applies for 6 and 7), the most recently created one is used.
A.1. If no default execution environment is provided 复制链接链接已复制到粘贴板!
Troubleshoot why a job bypasses the Default Execution Environment by verifying overrides in template, project, organization, or global settings, and checking environment array orders in configuration files and the database.
When the "Default Execution Environment" is not used for a job, double-check the following:
Procedure
- Check if a different execution environment EE has been defined for the template, project, or organization of the job.
Check if the
GLOBAL_JOB_EXECUTION_ENVIRONMENTSsetting is configured with any execution environments, as these take precedence over the Default execution environment.NoteThis setting is not configured by default.
-
Check the order of the GLOBAL_JOB_EXECUTION_ENVIRONMENTS in
/etc/tower/conf.d/execution_environments.py. "Default Execution Environment" should be the first item in the array. - Check the order of the execution environment defined in the database.
Run the following command as root on the controller node to output the
main_executionenvironmenttable:# echo "select id, name, created from main_executionenvironment where organization_id is null and managed = False order by created desc;" | awx-manage dbshell
To ensure that the "Default Execution Environment" is used regardless of the `GLOBAL_JOB_EXECUTION_ENVIRONMENTS`mm setting and database order, set the "Global default execution environment" in