From bcef79766aabbecfcfe4efe09a91727a550c654e Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 6 Apr 2021 14:15:12 +0200 Subject: [PATCH] Make Ansible overwrite Lemmy config (fixes #1549) --- ansible/lemmy.yml | 3 +-- ansible/templates/config.hjson | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible/lemmy.yml b/ansible/lemmy.yml index be4cea624..3f3667f21 100644 --- a/ansible/lemmy.yml +++ b/ansible/lemmy.yml @@ -83,12 +83,11 @@ pictshare_port: "8537" iframely_port: "8538" - - name: add config file (only during initial setup) + - name: add config file template: src: 'templates/config.hjson' dest: '{{lemmy_base_dir}}/lemmy.hjson' mode: '0600' - force: false owner: '1000' group: '1000' vars: diff --git a/ansible/templates/config.hjson b/ansible/templates/config.hjson index 51d25e77f..bd5939e85 100644 --- a/ansible/templates/config.hjson +++ b/ansible/templates/config.hjson @@ -1,6 +1,8 @@ { - # for more info about the config, check out the documentation + # For more info about the config, check out the documentation # https://join.lemmy.ml/docs/en/administration/configuration.html + # + # Do not change this file on the server, as rerunning Ansible will overwrite it # settings related to the postgresql database database: {