1
0
Fork 0
forked from infra/ansible

Zabbix: also test SSH access to the bastions from Batcave

Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
Greg Sutcliffe 2026-05-28 13:36:04 +01:00
commit 641887c8cf
Signed by: gwmngilfen
SSH key fingerprint: SHA256:dNHcz65ApR68w2TkCIAXDBdt4oNL62Fyx48U7dXWuk0

View file

@ -6,7 +6,7 @@
# should probably expand it to all known-available hosts
TMP_FILE=$(mktemp)
/usr/bin/ansible '*virtserver*' --list-hosts |grep -v "hosts.*:"|tr -d " " > "$TMP_FILE"
/usr/bin/ansible 'bastion:virtservers' --list-hosts |grep -v "hosts.*:"|tr -d " " > "$TMP_FILE"
if [ -s "$TMP_FILE" ]; then
mv "$TMP_FILE" /etc/zabbix/ssh-targets.txt