mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Solved some variable bugs
This commit is contained in:
parent
0d398dd07e
commit
a78af5032e
@ -187,7 +187,7 @@
|
||||
roles:
|
||||
- role: docker-listmonk
|
||||
vars:
|
||||
domain: "{{domain_newsletter}}"
|
||||
domain: "{{domain_listmonk}}"
|
||||
http_port: 8019
|
||||
|
||||
- name: setup discourse
|
||||
|
@ -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
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user