How credentials work
Credentials in automation controller store the information required to authenticate to remote systems and services. Credentials include usernames and passwords, SSH keys, tokens, and other sensitive data. Automation controller encrypts sensitive credential data in the database to enhance security.
Automation controller uses SSH to connect to remote hosts. To pass the key from automation controller to SSH, the key must be decrypted before it can be written to a named pipe. Automation controller uses that pipe to send the key to SSH, so that the key is never written to disk. If passwords are used, automation controller handles them by responding directly to the password prompt and decrypting the password before writing it to the prompt.
The Credentials page shows credentials that are currently available. The default view is collapsed (Compact), showing the credential name, and credential type.
From this screen you can edit
, duplicate
or delete ⋮ a credential.
It is possible to create duplicate credentials with the same name and without an organization. However, it is not possible to create two duplicate credentials in the same organization.
Example
- Create two machine credentials with the same name but without an organization.
- Use the module
ansible.controller.exportto export the credentials. - Use the module
ansible.controller.importin a different automation execution node. - Check the imported credentials.
When you export two duplicate credentials and then import them in a different node, only one credential is imported.
- Create new credentials
Learn how to create new credentials in Automation controller. - Add new users and job templates to existing credentials
You can add new users and job templates to existing credentials in automation controller.