Removed buggy variable mapping

This commit is contained in:
2024-01-03 12:07:19 +01:00
parent 509914fb86
commit 9c81a48f17
33 changed files with 34 additions and 43 deletions

View File

@@ -29,7 +29,7 @@
src: health-nginx.timer.j2
dest: "/etc/systemd/system/health-nginx.timer"
register: health_nginx_timer
changed_when: health_nginx_timer.changed or activate_all_timers
changed_when: health_nginx_timer.changed or activate_all_timers | bool
notify: restart health-nginx.timer
when: run_once_health_nginx is not defined

View File

@@ -31,7 +31,7 @@ for filename in os.listdir(config_path):
# Determine expected status codes based on the domain
if domain == '{{domain_listmonk}}':
expected_statuses = [401]
{% if nginx_matomo_tracking %}
{% if nginx_matomo_tracking | bool %}
elif parts[0] == 'www' or domain in redirected_domains:
expected_statuses = [301]
{% endif %}