Solved some variable bugs

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-12 12:52:58 +01:00
parent 0d398dd07e
commit a78af5032e
3 changed files with 9 additions and 4 deletions

View File

@ -187,7 +187,7 @@
roles:
- role: docker-listmonk
vars:
domain: "{{domain_newsletter}}"
domain: "{{domain_listmonk}}"
http_port: 8019
- name: setup discourse

View File

@ -3,8 +3,13 @@ import requests
import sys
import re
# Define the path to the nginx configuration directory
config_path = '{{nginx_servers_directory}}'
# Set up argument parser
parser = argparse.ArgumentParser(description='Check if domains of nginx configuration files respond with the correct status code.')
parser.add_argument('config_path', help='Path to the nginx configuration directory')
args = parser.parse_args()
# Use the provided argument for the config path
config_path = args.config_path
# Initialize the error counter
error_counter = 0

View File

@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 {{ health_nginx_folder }}health-nginx.py
ExecStart=/usr/bin/python3 {{ health_nginx_folder }}health-nginx.py {{nginx_servers_directory}}