Code Update
This commit is contained in:
parent
3618a34c41
commit
1852b1a119
@ -10,11 +10,18 @@ wx-infra(){
|
|||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
echo "Tag Required"
|
||||||
|
else
|
||||||
|
if [[ $1 == "init" ]]
|
||||||
|
then
|
||||||
|
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks/init.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
cd "$OLDPWD"
|
||||||
else
|
else
|
||||||
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "User Unsupported"
|
echo "User Unsupported"
|
||||||
|
7
wx
7
wx
@ -269,11 +269,18 @@ wx-infra(){
|
|||||||
if [[ -z $1 ]]
|
if [[ -z $1 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
echo "Tag Required"
|
||||||
|
else
|
||||||
|
if [[ $1 == "init" ]]
|
||||||
|
then
|
||||||
|
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks/init.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
cd "$OLDPWD"
|
||||||
else
|
else
|
||||||
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
|
||||||
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "User Unsupported"
|
echo "User Unsupported"
|
||||||
|
Loading…
Reference in New Issue
Block a user