AWX/Auth

From Omnia
< AWX
Revision as of 22:20, 20 September 2024 by Kenneth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Auth

Authentication — AWX CLI Ansible Tower 3.8.6 documentation
https://docs.ansible.com/ansible-tower/latest/html/towercli/authentication.html
TOWER_HOST=https://awx.example.org \
   TOWER_USERNAME=alice \
   TOWER_PASSWORD=secret \
   awx login

API Token

curl -ku username:password -H "Content-Type: application/json" -X POST -d '{"description":"Tower CLI", "application":null, "scope":"write"}' http://<ip_address>/api/v2/users/1/personal_tokens/ | jq -r .token

ref: https://stackoverflow.com/questions/54983803/ansible-awx-login-token-api

keywords