use existing config folder

This commit is contained in:
Antonio J. Delgado 2023-02-07 18:01:20 +02:00
parent b93a9e0159
commit 0bda16035e
2 changed files with 1 additions and 8 deletions

View file

@ -52,8 +52,6 @@ docker_compose_options:
interval: 30s interval: 30s
timeout: 5s timeout: 5s
retries: 2 retries: 2
volumes:
- /etc/invidious_container:/invidious/config/
depends_on: depends_on:
- invidious-db - invidious-db
invidious-db: invidious-db:

View file

@ -8,14 +8,9 @@
name: apache_ssl_vhosts name: apache_ssl_vhosts
when: handle_apache2_reverse_proxy when: handle_apache2_reverse_proxy
- name: Ensure Invidious configuration folder exists in host
file:
path: /etc/invidious_container
state: directory
- name: Ensure Invidious configuration file exists in host - name: Ensure Invidious configuration file exists in host
copy: copy:
dest: /etc/invidious_container/config.yml dest: "{{ invidious_folder }}/config/config.yml"
content: "{{ invidious_config | to_yaml() }}" content: "{{ invidious_config | to_yaml() }}"
backup: true backup: true