Add extra-vars parameter to use with Build tasks on Manager playbook in Infra command

This commit is contained in:
Christer Warén
2026-01-22 01:44:41 +02:00
parent 21db6ac4e9
commit 869a22cb73
2 changed files with 6 additions and 2 deletions

View File

@@ -72,10 +72,12 @@ wx-infra(){
else else
host=${args['host']} host=${args['host']}
fi fi
operation=${args['operation']} operation=${args['operation']}
extra_vars=${args['extra-vars']}
wxi-header "Manager" h3 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 else
wxi-header "Infra" h3 wxi-header "Infra" h3
host=${args['host']} host=${args['host']}

4
wx
View File

@@ -360,10 +360,12 @@ wx-infra(){
else else
host=${args['host']} host=${args['host']}
fi fi
operation=${args['operation']} operation=${args['operation']}
extra_vars=${args['extra-vars']}
wxi-header "Manager" h3 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 else
wxi-header "Infra" h3 wxi-header "Infra" h3
host=${args['host']} host=${args['host']}