mirror of
https://github.com/davestephens/ansible-nas
synced 2025-01-26 10:15:14 +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
|
dokuwiki_memory: 1g
|
||||||
|
|
||||||
# docker
|
# docker
|
||||||
docuwiki_container_name: docuwiki
|
dokuwiki_container_name: dokuwiki
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Start Docuwiki
|
- name: Start Dokuwiki
|
||||||
block:
|
block:
|
||||||
- name: Create DokuWiki Directories
|
- name: Create DokuWiki Directories
|
||||||
file:
|
file:
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
- name: DokuWiki Docker Container
|
- name: DokuWiki Docker Container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "{{ docuwiki_container_name }}"
|
name: "{{ dokuwiki_container_name }}"
|
||||||
image: linuxserver/dokuwiki:latest
|
image: linuxserver/dokuwiki:latest
|
||||||
pull: true
|
pull: true
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -30,12 +30,12 @@
|
||||||
traefik.http.routers.dokuwiki.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
traefik.http.routers.dokuwiki.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
||||||
traefik.http.routers.dokuwiki.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
traefik.http.routers.dokuwiki.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
||||||
traefik.http.services.dokuwiki.loadbalancer.server.port: "80"
|
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:
|
block:
|
||||||
- name: Stop Docuwiki
|
- name: Stop Dokuwiki
|
||||||
docker_container:
|
docker_container:
|
||||||
name: "{{ docuwiki_container_name }}"
|
name: "{{ dokuwiki_container_name }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: docuwiki_enabled is false
|
when: dokuwiki_enabled is false
|
||||||
|
|
Loading…
Reference in a new issue