Interview Prep/Ansible/AWX, AAP and Cloud Integration

How do you connect AWX to an external secrets manager?

IntermediateProductionAWX, AAP and Cloud Integration
Answer

Use credential lookup plugins (external secret management). Instead of storing the secret in AWX, a credential field is linked to a source such as HashiCorp Vault, CyberArk, Azure Key Vault, AWS Secrets Manager or Thycotic, and AWX fetches the value when the job launches.

Setup:

  1. Create a credential of the source type (for example "HashiCorp Vault Secret Lookup") with the Vault URL and auth (token, AppRole or certificate).
  2. In the machine or custom credential, click the key icon on a field and link it to that source with the secret path and key.
  3. Jobs using that credential get the current value every run.

Rotation then happens in Vault only, with no AWX change, and AWX's database never holds the secret itself.

All Ansible questions Roadmap: Ansible

More on AWX, AAP and Cloud Integration