Awx: Environment Variables injection

Created on 20 Sep 2017  路  6Comments  路  Source: ansible/awx

ISSUE TYPE
  • Feature Idea
COMPONENT NAME
  • API
  • UI
SUMMARY

sometimes we need to have access to the shell environments variables to run the job.
one good exemple of that is when using os_server_* tasks which could rely on OS_* vars.

This could prevent users to switch from local ansible scripts to AWX/Tower

ENVIRONMENT
  • AWX version: next one ?
  • Ansible version: any
  • Operating System: any
  • Web Browser: any
api ui medium enhancement

All 6 comments

This is settable globally in AWX settings.

Having this on a per org/JT level would be an enhancement.

in the case of openstack variables, having them available globally is not an option, it can be different by customers / projects.

And also very sensitive information.

Note that per-task can be done via the environment task (http://docs.ansible.com/ansible/latest/playbooks_environment.html) which can be fed by extra vars, vaulted vars, etc.

This is doable via custom credentials - these can be used to inject custom environment variables.

Hi, too bad this issue is closed, "Having this on a per org/JT level would be an enhancement" is an expected functionality.

Is there a simple way to do it with custom credentials ? It's not trivial to set it up.

now AWX support OpenStack credential and works fine with openstack module.
no need create custom credentials.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

darkaxl picture darkaxl  路  3Comments

gamuniz picture gamuniz  路  3Comments

Gui13 picture Gui13  路  3Comments

mwiora picture mwiora  路  3Comments

artmakh picture artmakh  路  3Comments