File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ action_vault(){
14
14
vault_run_command=(" ansible-vault" )
15
15
run_type=" local"
16
16
else
17
- vault_run_command=(" run_ansible" " --mount-path" " $( pwd) " " ansible-vault" )
17
+ vault_run_command=(" run_ansible" " --mount-path" " $( pwd) :/ansible " " ansible-vault" )
18
18
run_type=" docker"
19
19
fi
20
20
Original file line number Diff line number Diff line change @@ -1351,7 +1351,7 @@ set_ansible_vault_args() {
1351
1351
fi
1352
1352
fi
1353
1353
1354
- vault_args+=(" --vault-password-file" " .vault-password" )
1354
+ vault_args+=(" --vault-password-file" " /ansible/ .vault-password" )
1355
1355
elif is_encrypted_with_ansible_vault " $variable_file " || is_encrypted_with_ansible_vault " .spin-inventory.ini" ; then
1356
1356
echo " ${BOLD}${YELLOW} 🔐 '.vault-password' file not found. You will be prompted to enter your vault password.${RESET} " >&2
1357
1357
vault_args+=(" --ask-vault-pass" )
@@ -1361,6 +1361,9 @@ set_ansible_vault_args() {
1361
1361
}
1362
1362
1363
1363
setup_color () {
1364
+ # Disable debug tracing temporarily
1365
+ { set +x; } 2> /dev/null
1366
+
1364
1367
RAINBOW="
1365
1368
$( printf ' \033[38;5;196m' )
1366
1369
$( printf ' \033[38;5;202m' )
@@ -1374,6 +1377,11 @@ setup_color() {
1374
1377
BOLD=$( printf ' \033[1m' )
1375
1378
RESET=$( printf ' \033[m' )
1376
1379
MAGENTA=$( printf ' \033[1;35m' )
1380
+
1381
+ # Restore debug tracing if it was enabled
1382
+ if [[ " ${SPIN_DEBUG:- false} " == " true" ]]; then
1383
+ set -x
1384
+ fi
1377
1385
}
1378
1386
1379
1387
show_existing_files_warning () {
You can’t perform that action at this time.
0 commit comments