An administrator needs to store a secret API token in Ansible Automation Controller so that it can be used in job templates without exposing the token in plain text. Which type of credential should be used?
Trap 1: Vault credential
Vault credentials store Ansible Vault passwords, not arbitrary secrets.
Trap 2: Network credential
Network credentials are for network device authentication.
Trap 3: Cloud credential
Cloud credentials are for cloud provider authentication.
- A
Vault credential
Why wrong: Vault credentials store Ansible Vault passwords, not arbitrary secrets.
- B
Machine credential
Machine credentials can store SSH keys or passwords, but not API tokens directly; however, the token can be stored as a custom credential type or secret. This is the closest built-in type.
- C
Network credential
Why wrong: Network credentials are for network device authentication.
- D
Cloud credential
Why wrong: Cloud credentials are for cloud provider authentication.