Setting up authentication using a password
Before you begin
Ensure that:
-
You’ve installed
sshpassmodule on the management host machine.The management host machine is a RHEL 7.6 machine.
-
The password that you configure for the user in the
hostsfile must already be configured on the host machines.
About this task
You can also use password to authenticate with PingIntelligence and MongoDB host machines.
Configure the password of the host machine in the hosts file.
Steps
-
To add the password in the
hostsfile, edit thehostsfile to configure the password inansible_ssh_passparameter as shown in bold in the followinghostsfile snippet# Ansible SSH user to access host machines ansible_ssh_user=ec2-user # Uncomment the ansible_ssh_pass line and configure password of ansible_ssh_user if you want to use SSH connection with password. # If you do not use this option, then the SSH user uses password-less authentication. #ansible_ssh_pass=<SSH_user_password>