Add DokuWiki role
This commit is contained in:
4
roles/dokuwiki/defaults/main.yml
Normal file
4
roles/dokuwiki/defaults/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
dokuwiki_wiki_name: DokuWiki
|
||||||
|
dokuwiki_admin_email: "{{ admin_email }}"
|
||||||
45
roles/dokuwiki/meta/argument_specs.yml
Normal file
45
roles/dokuwiki/meta/argument_specs.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
argument_specs:
|
||||||
|
main:
|
||||||
|
short_description: DokuWiki container
|
||||||
|
description: "Sets up a DokuWiki docker container."
|
||||||
|
options:
|
||||||
|
dokuwiki_wiki_name:
|
||||||
|
description: Name of the DokuWiki site
|
||||||
|
type: str
|
||||||
|
reuired: false
|
||||||
|
default: DokuWiki
|
||||||
|
dokuwiki_admin_password:
|
||||||
|
description: Password of dokuwiki admin user
|
||||||
|
type: str
|
||||||
|
required: true
|
||||||
|
dokuwiki_admin_email:
|
||||||
|
description: Email address of dokuwiki admin user
|
||||||
|
type: str
|
||||||
|
required: false
|
||||||
|
default: "{{ admin_email }}"
|
||||||
|
|
||||||
|
# All options after this will be passed directly to the container role
|
||||||
|
docker_service_suffix:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
docker_host_user:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
|
||||||
|
docker_volume_type:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
reverse_proxy_type:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
ports:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
docker_vhost_domains:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
|
docker_entrypoint:
|
||||||
|
description: "Passed to container role"
|
||||||
|
required: false
|
||||||
18
roles/dokuwiki/tasks/main.yml
Normal file
18
roles/dokuwiki/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Dokuwiki container
|
||||||
|
import_role:
|
||||||
|
name: container
|
||||||
|
vars:
|
||||||
|
docker_service: dokuwiki
|
||||||
|
docker_image: bitnami/dokuwiki
|
||||||
|
docker_image_http_port: 8080
|
||||||
|
docker_mounts:
|
||||||
|
- name: data
|
||||||
|
path: /bitnami/dokuwiki
|
||||||
|
docker_env:
|
||||||
|
DOKUWIKI_USERNAME: admin
|
||||||
|
DOKUWIKI_FULL_NAME: Admin
|
||||||
|
DOKUWIKI_PASSWORD: "{{ dokuwiki_admin_password }}"
|
||||||
|
DOKUWIKI_EMAIL: "{{ dokuwiki_admin_email }}"
|
||||||
|
DOKUWIKI_WIKI_NAME: "{{ dokuwiki_wiki_name }}"
|
||||||
Reference in New Issue
Block a user