From 2de94ae68c53089f7b9e9ff078759ff28ae3e87d Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 19 Jun 2022 21:56:59 +0200 Subject: [PATCH] nginx: Verhindere die Installation von nginx-full wenn eine andere Version bereits installiert ist --- tasks/packages.yml | 2 +- templates/monit.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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