From e8c9328835a53072fccaaa97a632160d7fa7d4e5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 7 Feb 2023 17:47:08 +0200 Subject: [PATCH] create a configuration file --- tasks/configure.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 9b3bfdb..9540f13 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -8,11 +8,22 @@ name: apache_ssl_vhosts 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 template: src: templates/docker-compose.yml.j2 dest: "{{ invidious_folder }}/docker-compose.yml" - backup: yes + backup: true - name: Ensure composition is up community.docker.docker_compose: