Commit Graph

7 Commits

Author SHA1 Message Date
Damien TOURDE d05e5024d7
fix(handler):add condition to not launch handler when nginx_service_state stopped 2022-08-04 13:23:21 +02:00
Jeff Geerling 67c8be8106 Fix some Ansible Lint issues and set up yaml-lint options. 2018-09-25 22:42:06 -05:00
Aleksandr Vinokurov 5294d77fa3 Remove new config validation, Fix #41
NOTE: current nginx config validation process breaks SELinux context
for pid file, as described in #41

Restart of nginx is not needed for configuration changes and is
replaced with reload, which will validate config before applying it,
leaving running nginx process untouched in case of any validation
errors.

Restart handler left in support.
2016-01-22 12:56:30 +03:00
cmacrae bfa4fe7925 Correcting nginx config path in validate handler 2015-12-22 17:07:47 +00:00
cmacrae fd6b8c8e6b Addning handler for Nginx config validation:
Although the 'validate' param was added for the deployment of
/etc/nginx.conf - this validation process will only be triggered upon
changes.
So, if a vhost config is updated, but the main config isn't, the
collective config will not be verified.

I've added a new handler 'validate nginx configuration' and added this
to the 'notify' param as a first list item for vhost config changes.

Unfortunately, this will not protect against the deployment of malformed
configuration, however it will prevent the restart of Nginx in such a
situation (as the 'validate nginx configuration' handler should error
out before the 'restart nginx' handler is called).
2015-12-22 16:36:11 +00:00
Jeff Geerling 66922e9951 Fixes #10: Better organize os-specific tasks. 2015-02-20 23:15:01 -06:00
Jeff Geerling d9aebe7dee Initial commit. 2014-03-07 08:51:16 -06:00