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:
parent
de6e36a4e5
commit
641887c8cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue