StackStorm / ansible-st2

Ansible Roles and Playbooks to deploy StackStorm
https://galaxy.ansible.com/StackStorm/stackstorm/
Apache License 2.0
100 stars 75 forks source link

Fix nginx to install from 'nginx.org' repo, instead of 'EPEL' #191

Closed arm4b closed 6 years ago

arm4b commented 6 years ago

Originally we install nginx from the nxing.org official repo which has 1:1.12.2-1 version. A few days ago EPEL released new version of nginx 1:1.12.2-2.el7 which now takes precedence over the nginx.org version and get installed.

EPEL version of nginx comes with other dependencies, directory structure which resulted in broken nginx config after running this role:

       RUNNING HANDLER [nginx : restart nginx] ****************************************
       fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to restart service nginx: Job for nginx.service failed because the control process exited with error code. See \"systemctl status nginx.service\" and \"journalctl -xe\" for details.\n"}

Fix nginx role to exclude epel repo while installing the package.