Install Tyk in Centos 7


I am doing an installation with ansible, but I get this error, which is missing?

I think it’s something in the host file, but I don’t know what it is …

Thanks in advance

PLAY [redis] >**********************************************************************************************************************

TASK [Gathering Facts] >************************************************************************************************************
fatal: [redis]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: ssh: Could not resolve hostname host: Name or service not known”, “unreachable”: true}

PLAY RECAP >************************************************************************************************************************
redis : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

Hello @cvillami

It seems that you don’t have the right connection strings in your hosts file for the redis piece. Specifically the host part under redis.


But what should be the correct definition for the host file, is there an example?


Hello @cvillami

There is an example here

Also, what I was trying to say earlier is that whatever value you put inside your hosts.yaml for the redis. ansible_host seems to be invalid as ansible is unable to connect to it.

1 Like