Code Update

This commit is contained in:
Christer Warén 2024-05-03 00:53:02 +03:00
parent 26dac6550c
commit b58142a45f
2 changed files with 47 additions and 0 deletions

23
src/commands/infra.sh Normal file
View 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
View File

@ -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