diff --git a/src/commands/infra.sh b/src/commands/infra.sh index 4ae5394..50d67a1 100644 --- a/src/commands/infra.sh +++ b/src/commands/infra.sh @@ -72,10 +72,12 @@ wx-infra(){ else host=${args['host']} fi + operation=${args['operation']} + extra_vars=${args['extra-vars']} wxi-header "Manager" h3 - ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" + ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" --extra-vars="$extra_vars" else wxi-header "Infra" h3 host=${args['host']} diff --git a/wx b/wx index 089138b..49e2867 100755 --- a/wx +++ b/wx @@ -360,10 +360,12 @@ wx-infra(){ else host=${args['host']} fi + operation=${args['operation']} + extra_vars=${args['extra-vars']} wxi-header "Manager" h3 - ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" + ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host" --extra-vars="$extra_vars" else wxi-header "Infra" h3 host=${args['host']}