Code Update
This commit is contained in:
parent
1852b1a119
commit
25bf1a9ebc
@ -13,9 +13,14 @@ wx-infra(){
|
|||||||
else
|
else
|
||||||
if [[ $1 == "init" ]]
|
if [[ $1 == "init" ]]
|
||||||
then
|
then
|
||||||
|
if [[ -z $2 ]]
|
||||||
|
then
|
||||||
|
echo "Tag Required"
|
||||||
|
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/init.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
|
fi
|
||||||
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
|
||||||
|
7
wx
7
wx
@ -272,9 +272,14 @@ wx-infra(){
|
|||||||
else
|
else
|
||||||
if [[ $1 == "init" ]]
|
if [[ $1 == "init" ]]
|
||||||
then
|
then
|
||||||
|
if [[ -z $2 ]]
|
||||||
|
then
|
||||||
|
echo "Tag Required"
|
||||||
|
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/init.yml -t $1 $2 $3 $4 $5 $6 $7 $8 $9
|
ansible-playbook --vault-id warengroup@vault/warengroup playbooks/init.yml -t $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
|
fi
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user