Hi,
Using AWX 11.2.0
I have declared a variable awx_env under the “extra environment variables” under /settings/jobs:
`
{
“HOME”: “/var/lib/awx”,
“awx_env”: “staging”,
“ANSIBLE_SSH_ARGS”: “-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no”
}
`
But when I use this in a playbook, its value is empty?
Task:
`
- debug:
msg: “{{ lookup(‘env’, ‘awx_env’) }}”
`
Output:
`
TASK [debug] *******************************************************************
task path: /tmp/awx_4589_noinrvc7/project/test_greg.yml:5
ok: [L016152] => {
“msg”: “”
}
`