Quote environment variables

Ansible gets unhappy if there are values that could be interpreted by YAML
(e.g. boolean values or numbers), so quote everything as a principle.
This commit is contained in:
Stefan Haun 2022-06-28 21:51:22 +02:00
parent af0ddb5ba1
commit fce7bd6f2a

View file

@ -217,9 +217,9 @@
restart_policy: unless-stopped
detach: yes
env:
POSTGRES_USER: hedgedoc
POSTGRES_USER: "hedgedoc"
POSTGRES_PASSWORD: "{{ hedgedoc_postgres_password }}"
POSTGRES_DB: hedgedoc
POSTGRES_DB: "hedgedoc"
volumes:
- "/srv/data/hedgedoc/data/database:/var/lib/postgresql/data"
networks:
@ -236,14 +236,14 @@
- "{{ hedgedoc_host_port }}:3000"
restart_policy: unless-stopped
env:
NODE_ENV: production
CMD_DOMAIN: pad.n39.eu
CMD_URL_ADDPORT: true
CMD_DB_HOST: hedgedocdb
CMD_DB_PORT: 5432
CMD_DB_DIALECT: postgres
CMD_DB_DATABASE: hedgedoc
CMD_DB_USERNAME: hedgedoc
NODE_ENV: "production"
CMD_DOMAIN: "pad.n39.eu"
CMD_URL_ADDPORT: "true"
CMD_DB_HOST: "hedgedocdb"
CMD_DB_PORT: "5432"
CMD_DB_DIALECT: "postgres"
CMD_DB_DATABASE: "hedgedoc"
CMD_DB_USERNAME: "hedgedoc"
CMD_DB_PASSWORD: "{{ hedgedoc_postgres_password }}"
volumes:
- /srv/data/hedgedoc/data/uploads:/hedgedoc/public/uploads