Remove operation variable from Manager playbook in Infra command

This commit is contained in:
Christer Warén
2026-01-15 07:15:52 +02:00
parent c479044caf
commit a9539ffb9d
2 changed files with 4 additions and 4 deletions

View File

@@ -68,14 +68,14 @@ wx-infra(){
then then
if [[ -z ${args['host']} ]] if [[ -z ${args['host']} ]]
then then
host="any" host="*"
else else
host=${args['host']} host=${args['host']}
fi fi
operation=${args['operation']} operation=${args['operation']}
wxi-header "Manager" h3 wxi-header "Manager" h3
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host operation=$operation" ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host"
else else
wxi-header "Infra" h3 wxi-header "Infra" h3
host=${args['host']} host=${args['host']}

4
wx
View File

@@ -340,14 +340,14 @@ wx-infra(){
then then
if [[ -z ${args['host']} ]] if [[ -z ${args['host']} ]]
then then
host="any" host="*"
else else
host=${args['host']} host=${args['host']}
fi fi
operation=${args['operation']} operation=${args['operation']}
wxi-header "Manager" h3 wxi-header "Manager" h3
ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host operation=$operation" ansible-playbook $INFRA_VAULT manager.yml --tags $operation --extra-vars "host=$host"
else else
wxi-header "Infra" h3 wxi-header "Infra" h3
host=${args['host']} host=${args['host']}