#! /bin/bash | |
#set -x | |
COMPUTENODES=$( bash -c "source ~/service-profile/cord-pod/admin-openrc.sh ; nova hypervisor-list" |grep "cord.lab"|awk '{print $4}') | |
echo $COMPUTENODES | |
for NODE in $COMPUTENODES; do | |
ansible-playbook -i /etc/maas/ansible/pod-inventory ~/xos_services/PassiveTest/install_viv.yaml -e instance_name=$NODE | |
done |