Hi All,
Is there an AWX variable such as “tower_job_id” for the AWX hostname that can be used in playbooks? I want to send a notification to certain users containing a link to AWX job after execution is complete.
Rod
Hi All,
Is there an AWX variable such as “tower_job_id” for the AWX hostname that can be used in playbooks? I want to send a notification to certain users containing a link to AWX job after execution is complete.
Rod
You can execute hostname delegated to localhost to grab the tower host.
I do this in workflows were I execute a “create_vars” playbook/job to set numerous variables for use later on in the workflow. The job is executed only on the localhost.
Mike
Hi Mike,
Thanks for the reply, however it’s not the solution. The AWX task container hostname which is determined by K8S. The AWX URL is configured in the system settings. I can see that it’s available via the API at https:///api/v2/settings/all/. I thought that it may be available also a variable.
Rod