AWX/Auth: Difference between revisions
< AWX
(Created page with " 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") |
No edit summary |
||
Line 1: | Line 1: | ||
== Auth == | |||
Authentication — AWX CLI Ansible Tower 3.8.6 documentation | Authentication — AWX CLI Ansible Tower 3.8.6 documentation | ||
https://docs.ansible.com/ansible-tower/latest/html/towercli/authentication.html | https://docs.ansible.com/ansible-tower/latest/html/towercli/authentication.html | ||
Line 6: | Line 8: | ||
TOWER_PASSWORD=secret \ | TOWER_PASSWORD=secret \ | ||
awx login | 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 == |
Latest revision as of 22:20, 20 September 2024
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