From e8f8033bc76ba4fb3924e46beb8326e5b5002642 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 28 Sep 2021 17:32:34 +0200 Subject: [PATCH] Revert "add separate playbook for updating lemmy config" This reverts commit 0a970ae1da984791958b01b01d35e64d6f6eb98a. --- .gitignore | 1 - ansible/update_config.yml | 29 ----------------------------- 2 files changed, 30 deletions(-) delete mode 100644 ansible/update_config.yml diff --git a/.gitignore b/.gitignore index ff0c0091f..23e9c4033 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # local ansible configuration ansible/inventory ansible/passwords/ -ansible/lemmy-*.hjson # docker build files docker/lemmy_mine.hjson diff --git a/ansible/update_config.yml b/ansible/update_config.yml deleted file mode 100644 index 685a895b6..000000000 --- a/ansible/update_config.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- hosts: all - - tasks: - - name: check if config file was already fetched from server before - local_action: stat path='lemmy-{{domain}}.hjson' - register: stat_local_config_file - - - name: on first run, fetch lemmy config for local editing - fetch: - src: '{{lemmy_base_dir}}/lemmy.hjson' - dest: 'lemmy-{{domain}}.hjson' - flat: yes - when: stat_local_config_file.stat.exists == False - - - name: copy local lemmy config to server - copy: - src: 'lemmy-{{domain}}.hjson' - dest: '{{lemmy_base_dir}}/lemmy.hjson' - mode: '0600' - owner: '1000' - group: '1000' - - - - name: restart lemmy to apply new config - docker_compose: - project_src: '{{lemmy_base_dir}}' - state: present - restarted: yes \ No newline at end of file