mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
initial checkin -- May 27, 2017
This commit is contained in:
commit
845632d0ac
488 changed files with 41559 additions and 0 deletions
53
runtags
Executable file
53
runtags
Executable file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/bash
|
||||
|
||||
# copy var files to /etc/xsce for subsequent use
|
||||
|
||||
#./install-init
|
||||
|
||||
# if not the first run, repo location is here
|
||||
|
||||
if [ -f /etc/xsce/xsce.env ]
|
||||
then
|
||||
. /etc/xsce/xsce.env
|
||||
cd $XSCE_DIR
|
||||
fi
|
||||
|
||||
if [ ! -f xsce.yml ]
|
||||
then
|
||||
echo "XSCE Playbook not found."
|
||||
echo "Please run this command from the top level of the git repo."
|
||||
echo "Exiting."
|
||||
exit
|
||||
fi
|
||||
|
||||
tags=$(echo $1 | tr "," "\n")
|
||||
|
||||
found="N"
|
||||
|
||||
for tag in $tags
|
||||
do
|
||||
if [ "$tag" == "prep" ]
|
||||
then
|
||||
found="Y"
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
# echo $found
|
||||
|
||||
taglist=$1
|
||||
|
||||
if [ "$found" == "N" ]
|
||||
then
|
||||
taglist="prep,"$taglist
|
||||
fi
|
||||
|
||||
# script to run a specific tag in the current playbook
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "usage: $0 <tagname>"
|
||||
echo
|
||||
echo " If you would like a list of possible values, enter $0 XXX"
|
||||
exit 1
|
||||
fi
|
||||
export ANSIBLE_LOG_PATH="$XSCE_DIR/xsce-debug.log"
|
||||
ansible-playbook -i ansible_hosts xsce.yml --connection=local --tags="""$taglist"""
|
Loading…
Add table
Add a link
Reference in a new issue