#!/bin/bash | |
if [ "$#" -gt 0 -a "$1" = "stage" ] | |
then | |
echo "Formatting card to connect to staging image /opt/stage" | |
ansible-playbook -i "localhost," -c local format_new_card.yml --extra-vars "nfs_mount_point=/opt/stage" | |
else | |
echo "Formatting card to connect to production image /opt/prod" | |
ansible-playbook -i "localhost," -c local format_new_card.yml | |
fi |