Allow using operation without parameter name in Manager at Infra command

This commit is contained in:
Christer Warén
2026-01-22 01:37:53 +02:00
parent 21db6ac4e9
commit 8a75a6c1ce
2 changed files with 14 additions and 2 deletions

View File

@@ -72,7 +72,13 @@ wx-infra(){
else
host=${args['host']}
fi
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"

6
wx
View File

@@ -360,7 +360,13 @@ wx-infra(){
else
host=${args['host']}
fi
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"