From 869a22cb73d1b1baf1dedcd777a5e373c1e6c920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Thu, 22 Jan 2026 01:44:41 +0200 Subject: [PATCH] Add extra-vars parameter to use with Build tasks on Manager playbook in Infra command --- src/commands/infra.sh | 4 +++- wx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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']}