Hello,
I´m trying to install a test installation for Ubuntu with the tutorial in the docs section.
However, I get an installation error at this step:
root@alxtyk01:~/tyk-ansible# ansible-playbook playbook.yaml -t tyk-pro -t redis -t mongodb
ERROR! the role 'community.mongodb.mongodb_repository' was not found in /root/tyk-ansible/roles:/root/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles:/root/tyk-ansible
The error appears to be in '/root/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
Alright, so the issue spawned from installing ansible using the apt-get the latest version of ansible can be installed using pip3.
Please follow these instructions to get ansible collections working: sudo apt remove ansible sudo apt install python3-pip (if you don’t have pip3 installed) pip3 install ansible export PATH=$PATH:~/.local/bin (if you can’t execute ansible from the cmd line) ansible --version (this should give you the 2.10 version now)
Once you have ansible set up you’ll need to rerun the init.sh to install the collection and everything should work from there on.
Please let me know if you run into any other issues.
Regards,
Zaid
Thanks, this is working now, but now I´m already stuck at the next step. And this is more a lack of my tiny linux knowledge, rather than a tyk installation error, as I don´t know how to properly format the hosts.yaml,
I added the ansible_password and ansible_sudo_password variables to the hosts.yaml, but getting the “Missing sudo password”.
Tomorrow morning, I will start a cloud trial because we need to get things started for our webshop project. After that, maybe I have the time to deal with the on-premise installation again.