Allow using operation without parameter name in Manager at Infra command
This commit is contained in:
@@ -72,7 +72,13 @@ wx-infra(){
|
|||||||
else
|
else
|
||||||
host=${args['host']}
|
host=${args['host']}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z ${args['3']} ]]
|
||||||
|
then
|
||||||
operation=${args['operation']}
|
operation=${args['operation']}
|
||||||
|
else
|
||||||
|
operation=${args['3']}
|
||||||
|
fi
|
||||||
|
|
||||||
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"
|
||||||
|
|||||||
6
wx
6
wx
@@ -360,7 +360,13 @@ wx-infra(){
|
|||||||
else
|
else
|
||||||
host=${args['host']}
|
host=${args['host']}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z ${args['3']} ]]
|
||||||
|
then
|
||||||
operation=${args['operation']}
|
operation=${args['operation']}
|
||||||
|
else
|
||||||
|
operation=${args['3']}
|
||||||
|
fi
|
||||||
|
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user