Code Update
This commit is contained in:
parent
5903932328
commit
87608f9bfb
@ -44,13 +44,19 @@ wx-infra(){
|
|||||||
then
|
then
|
||||||
if [[ -z $2 ]]
|
if [[ -z $2 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
2=init
|
||||||
else
|
fi
|
||||||
|
|
||||||
cd "$INFRA_PATH"
|
cd "$INFRA_PATH"
|
||||||
git pull &> /dev/null
|
git pull &> /dev/null
|
||||||
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
else if [[ $1 == "manager" ]]
|
||||||
|
then
|
||||||
|
cd "$INFRA_PATH"
|
||||||
|
git pull &> /dev/null
|
||||||
|
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw manager.yml $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
cd "$OLDPWD"
|
||||||
else
|
else
|
||||||
cd "$INFRA_PATH"
|
cd "$INFRA_PATH"
|
||||||
git pull &> /dev/null
|
git pull &> /dev/null
|
||||||
|
12
wx
12
wx
@ -177,13 +177,19 @@ wx-infra(){
|
|||||||
then
|
then
|
||||||
if [[ -z $2 ]]
|
if [[ -z $2 ]]
|
||||||
then
|
then
|
||||||
echo "Tag Required"
|
2=init
|
||||||
else
|
fi
|
||||||
|
|
||||||
cd "$INFRA_PATH"
|
cd "$INFRA_PATH"
|
||||||
git pull &> /dev/null
|
git pull &> /dev/null
|
||||||
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
else if [[ $1 == "manager" ]]
|
||||||
|
then
|
||||||
|
cd "$INFRA_PATH"
|
||||||
|
git pull &> /dev/null
|
||||||
|
ansible-playbook --vault-id warengroup@vault/warengroup --vault-id cwchristerw@vault/cwchristerw manager.yml $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
cd "$OLDPWD"
|
||||||
else
|
else
|
||||||
cd "$INFRA_PATH"
|
cd "$INFRA_PATH"
|
||||||
git pull &> /dev/null
|
git pull &> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user