copy config from repo
This commit is contained in:
parent
0bda16035e
commit
ea9677589f
2 changed files with 14 additions and 1 deletions
|
@ -52,6 +52,8 @@ 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:
|
||||||
|
|
|
@ -8,12 +8,23 @@
|
||||||
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: "{{ invidious_folder }}/config/config.yml"
|
dest: /etc/invidious_container/config.yml
|
||||||
content: "{{ invidious_config | to_yaml() }}"
|
content: "{{ invidious_config | to_yaml() }}"
|
||||||
backup: true
|
backup: true
|
||||||
|
|
||||||
|
- name: Ensure Invidious configuration from repo is copied
|
||||||
|
copy:
|
||||||
|
dest: /etc/invidious_container/
|
||||||
|
remote_src: true
|
||||||
|
src: "{{ invidious_folder }}/config/"
|
||||||
|
|
||||||
- name: Ensure Invidious composition is created
|
- name: Ensure Invidious composition is created
|
||||||
template:
|
template:
|
||||||
src: templates/docker-compose.yml.j2
|
src: templates/docker-compose.yml.j2
|
||||||
|
|
Loading…
Reference in a new issue