Dan Anglin
9b7e3f3955
This is a big milestone for me as this is the first project where I completely set up GitOps for managing my Pleroma platform. [skip ci]
11 lines
372 B
Bash
Executable file
11 lines
372 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
ANSIBLE_SSH_VARS="ansible_connection=ssh ansible_host=${PLEROMA_ANSIBLE_HOST} ansible_user=${PLEROMA_ANSIBLE_USER}"
|
|
|
|
if [ "${PLEROMA_ENVIRONMENT:-nil}" == "testing" ]; then
|
|
ANSIBLE_SSH_VARS="${ANSIBLE_SSH_VARS} ansible_password=${PLEROMA_ANSIBLE_PASSWORD}"
|
|
fi
|
|
|
|
sed -i -e "s/free-flow/free-flow $ANSIBLE_SSH_VARS/g" ${INVENTORY}
|