diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml index 935814d..cb18c1c 100644 --- a/group_vars/all/vars.yml +++ b/group_vars/all/vars.yml @@ -311,7 +311,6 @@ bin_upload: "{{ docker_data_dir }}/{{bin_host}}/upload" qbit_port: "8082" qbit_host: "qbit" qbit_config: "templates/aya01/qbittorrentvpn/config" -qbit_ovpn_config: "openvpn/hu.protonvpn.net.udp.ovpn" qbit_remote_config: "{{ docker_dir }}/{{ qbit_host }}/config" qbit_downloads: "{{ arr_downloads }}" diff --git a/roles/docker/tasks/aya01_compose.yml b/roles/docker/tasks/aya01_compose.yml index e8f274e..6880a60 100644 --- a/roles/docker/tasks/aya01_compose.yml +++ b/roles/docker/tasks/aya01_compose.yml @@ -75,10 +75,3 @@ - include_tasks: grafana.yml tags: - grafana - -- name: Copy the compose file - template: - src: templates/aya01/compose.yaml - dest: "{{ docker_compose_dir }}/compose.yaml" - register: compose - diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 343faf7..7070268 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -1,28 +1,18 @@ --- - include_tasks: install.yml + - include_tasks: user_group_setup.yml -# - include_tasks: pi_compose.yml -# when: inventory_hostname == "pi" -# tags: -# - reload_compose -# - include_tasks: aya01_compose.yml -# when: inventory_hostname == "aya01" -# tags: -# - reload_compose -#- include_tasks: mii_compose.yml -# when: inventory_hostname == "mii" -# tags: -# - reload_compose + +- name: Copy the compose file + template: + src: templates/{{ inventory_hostname }}/compose.yaml + dest: "{{ docker_compose_dir }}/compose.yaml" + register: compose - include_tasks: "{{ inventory_hostname }}_compose.yml" tags: - reload_compose -- name: Shut down docker - shell: - cmd: "docker compose down --remove-orphans" - chdir: "{{ docker_compose_dir }}" - - name: Update Docker Images shell: cmd: "docker compose pull" @@ -30,5 +20,5 @@ - name: Restart Docker shell: - cmd: "docker compose up -d" + cmd: "docker compose restart" chdir: "{{ docker_compose_dir }}" diff --git a/roles/docker/tasks/mii_compose.yml b/roles/docker/tasks/mii_compose.yml index 8b5d8a8..0c3b78c 100644 --- a/roles/docker/tasks/mii_compose.yml +++ b/roles/docker/tasks/mii_compose.yml @@ -2,11 +2,3 @@ - include_tasks: swag.yml tags: - swag - -- name: Copy the compose file - template: - src: templates/mii/compose.yaml - dest: "{{ docker_compose_dir }}/compose.yaml" - tags: - - reload_compose - diff --git a/roles/docker/tasks/pi_compose.yml b/roles/docker/tasks/pi_compose.yml index 9f2079a..c0342fa 100644 --- a/roles/docker/tasks/pi_compose.yml +++ b/roles/docker/tasks/pi_compose.yml @@ -15,10 +15,3 @@ - include_tasks: pihole.yml tags: - pihole - -- name: Copy the compose file - template: - src: templates/pi/compose.yaml - dest: "{{ docker_compose_dir }}/compose.yaml" - tags: - - reload_compose