Code Update
This commit is contained in:
parent
26dac6550c
commit
b58142a45f
23
src/commands/infra.sh
Normal file
23
src/commands/infra.sh
Normal file
@ -0,0 +1,23 @@
|
||||
wx-infra(){
|
||||
wx-login
|
||||
wx-ssh-sign &> /dev/null
|
||||
|
||||
echo " >> Infra << "
|
||||
echo "------------------------------"
|
||||
|
||||
case $USER in
|
||||
cwchristerw)
|
||||
if [[ -z $1 ]]
|
||||
then
|
||||
echo "Tag Required"
|
||||
else
|
||||
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1
|
||||
cd "$OLDPWD"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "User Unsupported"
|
||||
;;
|
||||
esac
|
||||
}
|
24
wx
24
wx
@ -242,6 +242,30 @@ Management Commands:
|
||||
|
||||
}
|
||||
|
||||
wx-infra(){
|
||||
wx-login
|
||||
wx-ssh-sign &> /dev/null
|
||||
|
||||
echo " >> Infra << "
|
||||
echo "------------------------------"
|
||||
|
||||
case $USER in
|
||||
cwchristerw)
|
||||
if [[ -z $1 ]]
|
||||
then
|
||||
echo "Tag Required"
|
||||
else
|
||||
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1
|
||||
cd "$OLDPWD"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "User Unsupported"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
wx-settings(){
|
||||
wx-login
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user