mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Solved some variable bugs
This commit is contained in:
parent
b1e71e3875
commit
e4c380b2b5
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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}}
|
||||||
|
Loading…
Reference in New Issue
Block a user