How do I Retrieve an Ansible Tower API authtoken to Execute API Tasks via an Ansible Playbook?

Solution Verified - Updated -

Issue

I want to execute Ansible Tower API tasks from my playbook, but I would prefer to use an authtoken instead of username and password.

Environment

  • Ansible Tower >= 3.0.x
  • Ansible Engine >=2.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.