Solved some variable bugs

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

View File

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

View File

@ -3,8 +3,13 @@ import requests
import sys import sys
import re import re
# Define the path to the nginx configuration directory # Set up argument parser
config_path = '{{nginx_servers_directory}}' 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 # Initialize the error counter
error_counter = 0 error_counter = 0

View File

@ -4,4 +4,4 @@ OnFailure=systemd-notifier@%n.service
[Service] [Service]
Type=oneshot 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}}