Fix Infra command
This commit is contained in:
@@ -77,10 +77,10 @@ wx-infra(){
|
|||||||
wxi-header "Manager" h3
|
wxi-header "Manager" h3
|
||||||
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$hostname operation=$operation"
|
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$hostname operation=$operation"
|
||||||
else
|
else
|
||||||
wxi-header "Playbooks" h3
|
wxi-header "Infra" h3
|
||||||
hostname=${args['hostname']}
|
hostname=${args['hostname']}
|
||||||
tags=${args['2']}
|
tags=${args['2']}
|
||||||
ansible-playbook $INFRA_VAULT playbooks.yml --tags $tags --limit "$hostname"
|
ansible-playbook $INFRA_VAULT infra.yml --tags $tags --limit "$hostname"
|
||||||
fi
|
fi
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
fi
|
||||||
|
|||||||
4
wx
4
wx
@@ -349,10 +349,10 @@ wx-infra(){
|
|||||||
wxi-header "Manager" h3
|
wxi-header "Manager" h3
|
||||||
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$hostname operation=$operation"
|
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$hostname operation=$operation"
|
||||||
else
|
else
|
||||||
wxi-header "Playbooks" h3
|
wxi-header "Infra" h3
|
||||||
hostname=${args['hostname']}
|
hostname=${args['hostname']}
|
||||||
tags=${args['2']}
|
tags=${args['2']}
|
||||||
ansible-playbook $INFRA_VAULT playbooks.yml --tags $tags --limit "$hostname"
|
ansible-playbook $INFRA_VAULT infra.yml --tags $tags --limit "$hostname"
|
||||||
fi
|
fi
|
||||||
cd "$OLDPWD"
|
cd "$OLDPWD"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user