CentOS Stream 8
Sponsored Link

Ansible : AWX : Add Credentials2022/02/24

 
This is the basic configuration for Ansible AWX to run Ansible Playbooks.
To run Playbooks on target Hosts on AWX, it needs to configure the following settings.
* Add inventories
* Add credentials
* Add projects
* Add job templates
To add credentials, configure like follows.
This credentials are used for the case AWX connects to the target Hosts to run Playbooks or AWX imports Playbooks from Git or SVN repositories, and others.
[1] Login to Ansible AWX Web and click [Credentials] on the left pane.
[2] Click [Add] button on the right pane.
[3]
Input basic information for credential and click [Save] button to save.
Following credential example is for the one that is required when AWX connects to Hosts you'd like to run Playbooks.
[Name] :   Set any name you like
[Credential Type] :   Select [Machine] on the list
[Username] :   Specify the user who connects to target Hosts via SSH
[Password] :   Specify the password of the user above
If you use SSH key-pair authentication, it's OK with blank here
[SSH Private Key] :   If you use SSH key-pair authentication, paste the content of private key you generated on a target Host
[Private Key Pasphrase] :   If you set passphrase on SSH key-pair, input it
[Privilege Escalation Method] :   If you set a common user on [Username], then specify Privilege Escalation Method
[Privilege Escalation Password] :   Specify the password that when the user specified on [Username] escalates to root privilege with the way on [Privilege Escalation Method],
for example, if you set [sudo] like this example, specify the OS password of the user specified on [Username]

[4] After Saving credential, that's OK if following screen is shown.
[5]
By the way, it's possible to add various type of credentials on here, like for Git or SVN repositories and so on.
Following credential example is for the case you specify Git or SVN repositories Playbooks are stored for Source Control Type that is required to set when you add Projects later like here.
[Name] :   Set any name you like
[Credential Type] :   If you set Git or SVN repositories, select [Source Control]
[Username] :   Specify the user who can connect to repositories
[Password] :   Specify the password of the user above
If you use SSH key-pair authentication, it's OK with blank here
[SSH Private Key] :   If you use SSH key-pair authentication, paste the content of private key you generated on a target Host
[Private Key Pasphrase] :   If you set passphrase on SSH key-pair, input it

[6] After setting all, That's OK if new credentials are displayed on [Credentials] list.
Matched Content