Compare commits
1 Commits
6ccdc58bf3
...
fffc5f8f01
Author | SHA1 | Date | |
---|---|---|---|
|
fffc5f8f01 |
10
entrypoint
10
entrypoint
@ -9,12 +9,13 @@ if [[ -z "$PLUGIN_PLAYBOOK" ]]; then
|
||||
fi
|
||||
|
||||
if [[ -z "$PLUGIN_PRIVATE_KEY" ]]; then
|
||||
echo -e "\e[31m[WARN] 'private_key' setting not defined !\e[39m"
|
||||
else
|
||||
echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed
|
||||
chmod 400 /root/.ssh/id_ed
|
||||
echo -e "\e[31m'private_key' setting not defined, ABORT!\e[39m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "$PLUGIN_PRIVATE_KEY" > /root/.ssh/id_ed
|
||||
chmod 400 /root/.ssh/id_ed
|
||||
|
||||
if [[ -n "$PLUGIN_VAULT_TOKEN" ]]; then
|
||||
echo "Adding vault token to 'credentials/vault_token'"
|
||||
mkdir credentials
|
||||
@ -47,5 +48,4 @@ if [[ -n "$PLUGIN_LIMIT" ]]; then
|
||||
fi
|
||||
|
||||
echo "\$ ansible-playbook $args"
|
||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
ansible-playbook $args
|
Reference in New Issue
Block a user