From 4a87046a9c1b769a9b06f34f5ab60da0f417dd26 Mon Sep 17 00:00:00 2001 From: Isshi0417 Date: Wed, 8 Jul 2026 05:28:46 +0000 Subject: [PATCH] Fix remaining variable quoting and IP address typos --- ansible/deploy_monitor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/deploy_monitor.yml b/ansible/deploy_monitor.yml index ef4f4ea..c3c2005 100644 --- a/ansible/deploy_monitor.yml +++ b/ansible/deploy_monitor.yml @@ -24,7 +24,7 @@ hosts = { "ipa": "172.30.1.100", - "control": "172.30.1.00", + "control": "172.30.1.200", "web": "172.30.1.201", "media": '172.30.1.202' } @@ -32,7 +32,7 @@ status = {} for name, ip in hosts.items(): - res = subprocess.run(["ping", "-c", "1", "-W", "1", "ip"], stdout=subprocess.DEVNULL) + res = subprocess.run(["ping", "-c", "1", "-W", "1", ip], stdout=subprocess.DEVNULL) status[name] = (res.returncode == 0) output_path = "/usr/share/nginx/html/status.json" @@ -52,7 +52,7 @@ [Service] Type=simple - ExecStart=/bin/bash -c "While true; do /usr/bin/python3 /usr/share/nginx/html/ping_status.py; sleep 10; done" + ExecStart=/bin/bash -c "while true; do /usr/bin/python3 /usr/share/nginx/html/ping_status.py; sleep 10; done" Restart=always [Install]