Understanding Machine Credentials and Creating SSH Connections in Ansible Automation

Posted on

In the Ansible automation platform, I would like to understand how machine credentials work.

By utilizing the execution environment, playbook execution will not be processed on the control machine but rather in the execution environment. Therefore, my question is: what machine credentials should I use to enable SSH connections to the target hosts from the automation platform?

In my case, I have 2 target machines where SSH connections were already enabled and keys are shared. How can I create these machine credentials?

Additionally, I have already created an inventory with those 2 hosts.

Responses