From 4bf13d78fe49225480c5d619ec200abc6b7c25fa Mon Sep 17 00:00:00 2001 From: David Stephens Date: Mon, 12 Sep 2022 23:26:39 +0100 Subject: [PATCH] Fix Dokuwiki start/stop --- roles/dokuwiki/defaults/main.yml | 2 +- roles/dokuwiki/tasks/main.yml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/dokuwiki/defaults/main.yml b/roles/dokuwiki/defaults/main.yml index 90198228..94029b04 100644 --- a/roles/dokuwiki/defaults/main.yml +++ b/roles/dokuwiki/defaults/main.yml @@ -17,4 +17,4 @@ dokuwiki_port: "8085" dokuwiki_memory: 1g # docker -docuwiki_container_name: docuwiki +dokuwiki_container_name: dokuwiki diff --git a/roles/dokuwiki/tasks/main.yml b/roles/dokuwiki/tasks/main.yml index 4f47df6c..b0ba0546 100644 --- a/roles/dokuwiki/tasks/main.yml +++ b/roles/dokuwiki/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: Start Docuwiki +- name: Start Dokuwiki block: - name: Create DokuWiki Directories file: @@ -10,7 +10,7 @@ - name: DokuWiki Docker Container docker_container: - name: "{{ docuwiki_container_name }}" + name: "{{ dokuwiki_container_name }}" image: linuxserver/dokuwiki:latest pull: true volumes: @@ -30,12 +30,12 @@ traefik.http.routers.dokuwiki.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.dokuwiki.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.services.dokuwiki.loadbalancer.server.port: "80" - when: docuwiki_enabled is true + when: dokuwiki_enabled is true -- name: Stop Docuwiki +- name: Stop Dokuwiki block: - - name: Stop Docuwiki + - name: Stop Dokuwiki docker_container: - name: "{{ docuwiki_container_name }}" + name: "{{ dokuwiki_container_name }}" state: absent - when: docuwiki_enabled is false + when: dokuwiki_enabled is false