automation install service with ansible

asked 2019-01-03 14:27:45 -0500

raniaadouni gravatar image

Hi everyone , I am trying to automatize the installation of lamp server on openstack instance using the it automation Ansible !! I am working with this instruction : https://fuga.cloud/academy/tutorials/...

But I get error when I try to run the playbook setup.yaml fatal: [lamp01]: FAILED! => {"changed": false, "failed": true, "rc": 255, "stderr": "", "stdout": "", "stdout_lines": []}

also error with roles/lamp.yaml : fatal: [lamp01]: UNREACHABLE! => {"changed": false, "msg": "ERROR! SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue", "unreachable": true} this is the file /etc/ansible/hosts [webservers] lamp01 ansible_ssh_private_key_file=/ansible/tenantA.pem

I am wondering how I can fix this errors !!

edit retag flag offensive close merge delete

Comments

It seems that ssh is unable to connect to the server named lamp01.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-03 19:31:32 -0500 )edit

yes I know that but when I try to ssh the lamp01 instance ssh ubuntu@192.168.1.x (floating ip) it work but with ansible always unreachable !! do you have any idea how i can fix it !!

raniaadouni gravatar imageraniaadouni ( 2019-01-04 03:31:36 -0500 )edit

Use -vvv to get a detailed error description. Expect a lot of output.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-04 08:15:17 -0500 )edit

hi bernd I did solve this it was problem with version of ansible that I was using but thanks for your help

raniaadouni gravatar imageraniaadouni ( 2019-01-06 14:09:12 -0500 )edit