Incorrect setup of Systemd restart value (#375)

This commit is contained in:
Andrej Zelník 2021-03-16 13:06:24 +01:00 committed by GitHub
parent f1acd94bb6
commit f4c0829b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,7 @@ ENHANCEMENTS:
* Minor GitHub template tweaks, including the creation of a SECURITY doc.
* Update list of supported platforms.
* Update Ansible base to `2.10.5`, Molecule to `3.2.3`, yamllint to `1.26.0` and Docker Python SDK to `4.4.4`.
* Override of systemd `Restart` value by using proper `nginx_service_restart` variable.
BUG FIXES:

View File

@ -5,6 +5,9 @@ TimeoutStopSec={{ nginx_service_timeoutstopsec | default(90) }}
{% if nginx_service_restartonfailure is defined %}
Restart=on-failure
{% endif %}
{% if nginx_service_restart is defined %}
Restart={{ nginx_service_restart }}
{% endif %}
{% if nginx_service_restartsec is defined %}
RestartSec={{ nginx_service_restartsec }}
{% endif %}