Please someone help me. I do not understand why i get this error. I can ssh from my control node to this host and from the host to my control node. But ansible test show this results.
192.168.154.163 | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: control@192.168.154.163: Permission denied (publickey,password).”,
“unreachable”: true
Try ansible_ssh_user and ansible_ssh_pass as keywords in the inventory and set privilege escalation in the ansible.cfg file also add the user to the sudoers list in managed node as per requirement.
Hello Team ,
I have oen requirement on Ansible with Hp ILO server…
I am new to ansible.Need help from you people.
Requirement is
Have to connect Hp ilo serverr using SSH and get SWId’s details and the out out i have to display in csv file… can any implementation pls do let me know.
Naveen
Note it is looking for the private key at my user's default location;
where you place it depends on your needs.
4. Consider having a host_vars/cyber01.yml file instead of cluttering
the inventory one. You can then populate this file with all the
initial constants you need (IP address, username, etc), passing any
variables that might change at runtime using --extra_vars as shown
above.