Debug
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful

This commit is contained in:
SebClem 2022-12-29 12:14:09 +01:00
parent e0f7fe3fee
commit 811069b1b3
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 12 additions and 4 deletions

View File

@ -1,6 +1,6 @@
FROM python:3.11.1-slim
RUN apt-get update && apt-get install -y git \
RUN apt-get update && apt-get install -y git toilet \
&& rm -rf /var/lib/apt/lists/*
# renovate: datasource=pypi depName=ansible

View File

@ -3,19 +3,27 @@
check=${PLUGIN_CHECK_SYNTAX:-false}
verbosity=${PLUGIN_VERBOSITY:-0}
C_RESET="\e[39m"
C_RED="\e[31m"
C_YELLOW="\e[33m"
C_BLUE="\e[34m"
run_command(){
echo "➡️ $@"
$@
}
echo -e "${C_BLUE}"
toilet -f smblock Woodpecker Ansible
toilet -f smblock " Runner"
echo -e "${C_RESET}"
if [ -z "$PLUGIN_PLAYBOOK" ]; then
echo -e "⚠️ \e[31m'playbook' setting not defined, ABORT!\e[39m"
echo -e "⚠️ ${C_RED}'playbook' setting not defined, ABORT!${C_RESET}"
exit 1
fi
if [ -z "$PLUGIN_PRIVATE_KEY" ]; then
echo -e "⚠️ \e[31m[WARN] 'private_key' setting not defined !\e[39m"
echo -e "⚠️ ${C_YELLOW}[WARN] 'private_key' setting not defined !${C_RESET}"
else
run_command "mkdir /root/.ssh"