georchestra / ansible

Ansible playbooks to deploy a fullblown geOrchestra instance
ISC License
16 stars 12 forks source link

[ Configuration ] ansible_ssh_user #60

Open pierrejego opened 6 years ago

pierrejego commented 6 years ago

Hello, it's not really an issue, but it could help for installation.

When launching playbook with another user than root, I got the error

UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,password).\r\n", "unreachable": true

To solve this, just add ansible_ssh_user=root in the hosts file.

Regards

Gaetanbrl commented 3 years ago

Something like that was inserted in https://github.com/georchestra/ansible#setup by PR #80.

Do you think we can close this issue now ?

landryb commented 3 years ago

you dont have to use ansible_ssh_user=root, become also works ... :)