Closed beingnishas closed 4 years ago
@Niceha did you make sure that you used the master branch of the mongodb role and a supported ansible version. See https://github.com/Graylog2/graylog-ansible-role#dependencies and https://github.com/Graylog2/graylog-ansible-role/blob/master/requirements.yml
I'm trying to install nginx on my node machines, looks like Not an Ansible problem, yum says it can't find nginx .could you please help me to resolve.thanks
nginx.yml file
hosts : test
tasks :
name : install nginx yum : pkg=nginx state=installed
notify :
- start nginx
handlers :
- name : start nginx service : name=nginx state=started
ansible-playbook nginx.yml
Error:
"msg": "No package matching 'nginx' found available, installed or updated", "rc": 126,
@tharak135 : make sure you use name:
@Niceha : I set up EPEL repo for centos and installed Ansible using yum.
yum -y install epel-release yum -y update yum install ansible
do you want me try to intall EPEL repo using rpm and try to install ansible again
Thanks
Closing this as it's over 2 years old now. If you are still running into this issue, feel free to reopen.
Hi I have followed the steps, everything is downloaded in roles, but while running on vagrant there is dependecy related issue. Do I need to manually install the dependecy first and then run the playbook? Please refer the error output below: