diff --git a/src/commands/infra.sh b/src/commands/infra.sh index 4ae5394..9addc10 100644 --- a/src/commands/infra.sh +++ b/src/commands/infra.sh @@ -72,7 +72,13 @@ wx-infra(){ else host=${args['host']} fi - operation=${args['operation']} + + if [[ -z ${args['3']} ]] + then + operation=${args['operation']} + else + operation=${args['3']} + fi wxi-header "Manager" h3 ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" diff --git a/wx b/wx index 089138b..174bf23 100755 --- a/wx +++ b/wx @@ -360,7 +360,13 @@ wx-infra(){ else host=${args['host']} fi - operation=${args['operation']} + + if [[ -z ${args['3']} ]] + then + operation=${args['operation']} + else + operation=${args['3']} + fi wxi-header "Manager" h3 ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host"