mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
Fix Dokuwiki start/stop
This commit is contained in:
parent
b743a1e3ae
commit
4bf13d78fe
2 changed files with 8 additions and 8 deletions
|
@ -17,4 +17,4 @@ dokuwiki_port: "8085"
|
|||
dokuwiki_memory: 1g
|
||||
|
||||
# docker
|
||||
docuwiki_container_name: docuwiki
|
||||
dokuwiki_container_name: dokuwiki
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue