Revert "add separate playbook for updating lemmy config"

This reverts commit 0a970ae1da.
This commit is contained in:
Felix Ableitner 2021-09-28 17:32:34 +02:00
parent 0a970ae1da
commit e8f8033bc7
2 changed files with 0 additions and 30 deletions

1
.gitignore vendored
View file

@ -1,7 +1,6 @@
# local ansible configuration # local ansible configuration
ansible/inventory ansible/inventory
ansible/passwords/ ansible/passwords/
ansible/lemmy-*.hjson
# docker build files # docker build files
docker/lemmy_mine.hjson docker/lemmy_mine.hjson

View file

@ -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