fix(ansible): audit time sync across systemd-timesyncd and chrony without dbus dependency
This commit is contained in:
@@ -47,3 +47,4 @@ try:
|
||||
|
||||
except Exception as e:
|
||||
print("AWX Query Error:", e)
|
||||
|
||||
|
||||
@@ -11,3 +11,4 @@ stdin, stdout, stderr = ssh.exec_command("kubectl get secret awx-admin-password
|
||||
print("ADMIN PASSWORD:\n", stdout.read().decode())
|
||||
|
||||
ssh.close()
|
||||
|
||||
|
||||
@@ -17,3 +17,4 @@ with urllib.request.urlopen(req, timeout=10, context=ctx) as r:
|
||||
print(f"Total Active Problems in Zabbix: {len(problems)}")
|
||||
for p in problems:
|
||||
print(f" - [Severity {p['severity']}] {p['name']}")
|
||||
|
||||
|
||||
@@ -36,3 +36,4 @@ print(stdout.read().decode())
|
||||
print(stderr.read().decode())
|
||||
|
||||
ssh.close()
|
||||
|
||||
|
||||
@@ -59,3 +59,4 @@ for nas in nas_devices:
|
||||
print(f"{nas['name']} is already registered.")
|
||||
|
||||
print("All NAS devices registered in Zabbix!")
|
||||
|
||||
|
||||
@@ -68,3 +68,4 @@ for name, ip, user in TARGETS:
|
||||
ssh.close()
|
||||
except Exception as e:
|
||||
print(f" [ERROR] Failed on {name} ({ip}): {e}")
|
||||
|
||||
|
||||
@@ -181,3 +181,4 @@ print(stdout.read().decode())
|
||||
print(stderr.read().decode())
|
||||
|
||||
ssh.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user