🔨 remove double quote
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone Build is passing

This commit is contained in:
SebClem 2022-03-04 16:19:53 +01:00
parent 8cfae7c22a
commit 701d3715ac
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305

View File

@ -14,14 +14,14 @@ if [[ -z "$PLUGIN_PLAYBOOK" ]]; then
exit 1 exit 1
fi fi
if [[ -z "$PLUGIN_PRIVATE_KEY" ]]; then # if [[ -z "$PLUGIN_PRIVATE_KEY" ]]; then
echo -e "\e[31m[WARN] 'private_key' setting not defined !\e[39m" # echo -e "\e[31m[WARN] 'private_key' setting not defined !\e[39m"
else # else
run_command "mkdir /root/.ssh" # run_command "mkdir /root/.ssh"
echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed25519 # echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed25519
run_command chmod 400 /root/.ssh/id_ed25519 # run_command chmod 400 /root/.ssh/id_ed25519
fi # fi
args=("$PLUGIN_PLAYBOOK") args=("$PLUGIN_PLAYBOOK")
@ -57,11 +57,11 @@ if [[ $verbosity != "0" ]]; then
fi fi
if [[ -n "$PLUGIN_LIMIT" ]]; then if [[ -n "$PLUGIN_LIMIT" ]]; then
args+=("--limit" "\"$PLUGIN_LIMIT\"") args+=("--limit" "$PLUGIN_LIMIT")
fi fi
if [[ -n "$PLUGIN_TAGS" ]]; then if [[ -n "$PLUGIN_TAGS" ]]; then
args+=("--tags" "\"$PLUGIN_TAGS\"") args+=("--tags" "$PLUGIN_TAGS")
fi fi
run_command "export ANSIBLE_HOST_KEY_CHECKING=False" run_command "export ANSIBLE_HOST_KEY_CHECKING=False"