create a configuration file
This commit is contained in:
parent
b1c5890c39
commit
e8c9328835
1 changed files with 12 additions and 1 deletions
|
@ -8,11 +8,22 @@
|
||||||
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
|
||||||
|
copy:
|
||||||
|
path: /etc/invidious_container/config.yml
|
||||||
|
content: "{{ invidious_config | to_yaml() }}"
|
||||||
|
backup: true
|
||||||
|
|
||||||
- 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
|
||||||
dest: "{{ invidious_folder }}/docker-compose.yml"
|
dest: "{{ invidious_folder }}/docker-compose.yml"
|
||||||
backup: yes
|
backup: true
|
||||||
|
|
||||||
- name: Ensure composition is up
|
- name: Ensure composition is up
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
|
|
Loading…
Reference in a new issue