diff --git a/tasks/packages.yml b/tasks/packages.yml index 2cc2844..1bc3122 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -3,4 +3,4 @@ apt: pkg: - liblwp-useragent-determined-perl - - nginx-full + - "{{ nginx.version | default(nginx-full) }}" diff --git a/templates/monit.j2 b/templates/monit.j2 index 7a9dded..19a4af7 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -4,5 +4,5 @@ check process nginx with pidfile /var/run/nginx.pid group webserver start program = "/usr/sbin/service nginx start" stop program = "/usr/sbin/service nginx stop" - if failed host 127.0.0.1 port {{ nginx_port |default(80) }} for 3 cycles then restart + if failed host 127.0.0.1 port {{ nginx.port |default(80) }} for 3 cycles then restart if 5 restarts with 5 cycles then timeout