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

12 lines
372 B
Text
Raw Normal View History

#!/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}