HI, I am trying to setup tyk API gateway. Below are the environment details:
Red Hat Enterprise Linux Server release 7.9 (Maipo)
ansible 2.9.25
python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
When I am running below command as part of the setting up. I am getting error.
ansible-playbook playbook.yaml -t tyk-ce -t redis
Error:
<<
‘community.mongodb.mongodb_repository’ was not found in /home/ec2-user/tyk-ansible/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/home/ec2-user/tyk-ansible
The error appears to be in ‘/home/ec2-user/tyk-ansible/playbook.yaml’: line 20, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
roles:
- community.mongodb.mongodb_repository
^ here
Please help to resolve this issue, I have googled a lot but not getting any lead towards solution.
Thanks for your support and response, It worked. But can you Please confirm removing mongodb tags won’t impact the functionality of tyk api gateway in any way?
In addition to above now I am getting below error, which seems related to pem file configuration. So just wondering which pem file we need to use here. should I generate 1 selfsigned cert and use.
<<<
ansible-playbook playbook.yaml -t tyk-ce -t redis
PLAY [redis] ************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************
[WARNING]: Unhandled error in Python interpreter discovery for host redis: Failed to connect to the host via ssh: Warning: Permanently added
‘ec2-18-142-155-240.ap-southeast-1.compute.amazonaws.com,10.10.31.38’ (ECDSA) to the list of known hosts. no such identity: ./secret.pem: No such file or
directory Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fatal: [redis]: UNREACHABLE! => {“changed”: false, “msg”: “Data could not be sent to remote host "ec2-18-142-155-240.ap-southeast-1.compute.amazonaws.com". Make sure this host can be reached over ssh: no such identity: ./secret.pem: No such file or directory\r\nPermission denied (publickey,gssapi-keyex,gssapi-with-mic).\r\n”, “unreachable”: true}
PLAY [redis] ************************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************
fatal: [redis]: FAILED! => {“ansible_facts”: {}, “changed”: false, “failed_modules”: {“setup”: {“ansible_facts”: {“discovered_interpreter_python”: “/usr/bin/python”}, “failed”: true, “module_stderr”: “sudo: sorry, you must have a tty to run sudo\n”, “module_stdout”: “”, “msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”, “rc”: 1}}, “msg”: “The following modules failed to execute: setup\n”}