This repository has been archived on 2023-05-06. You can view files and clone it, but cannot push or open issues or pull requests.
pleroma-platform/.gitlab/ci/bin/generate-inventory
Dan Anglin 9b7e3f3955
feat: managing my Pleroma instance with GitOps.
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]
2020-06-28 03:02:20 +01:00

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}