From 027e1ec7583f43f692aeb4c439fab2b1096d2679 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 12 Jun 2015 09:19:15 -0600 Subject: [PATCH] Use nmap instead of ncat for port scanning netcat is apparently unavailable on RHEL7 Signed-off-by: Zack Cerza --- .../cobbler/templates/triggers/install/post/cephlab_ansible.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh index 56452f7f..7ee3f141 100644 --- a/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh +++ b/roles/cobbler/templates/triggers/install/post/cephlab_ansible.sh @@ -9,7 +9,7 @@ ANSIBLE_CM_PATH=/root/ceph-cm-ansible # Bail if the ssh port isn't open, as will be the case when this is run # while the installer is still running. When this is triggered by # /etc/rc.local after a reboot, the port will be open and we'll continue -nc -vz $name 22 +nmap -sT -oG - -p 22 $name | grep 22/open mkdir -p /var/log/ansible -- 2.47.3