dokuwiki: add ability to checkout custom theme repo #21
3 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,7 @@ None.
|
|||
- `dokuwiki__php_user`: User of your php-fpm process, default `www-data`
|
||||
- `dokuwiki__nginx_user`: User of your nginx process, default `nginx`
|
||||
- `dokuwiki__custom_theme_git_url`: Clone URL of custom theme (HTTPS only)
|
||||
- `dokuwiki__custom_theme_version`: Version (git branch, tag, ...) to checkout, default main
|
||||
- `dokuwiki__custom_theme_name`: Name of the directory into which the custom theme is cloned
|
||||
|
||||
## nginx Configuration
|
||||
|
|
|
@ -4,4 +4,5 @@ dokuwiki__php_version: "{{ dokuwiki__php_versions[ansible_distribution + '-' + a
|
|||
dokuwiki__php_user: "www-data"
|
||||
dokuwiki__nginx_user: "nginx"
|
||||
dokuwiki__custom_theme_git_url: ""
|
||||
dokuwiki__custom_theme_version: "main"
|
||||
june marked this conversation as resolved
Outdated
|
||||
dokuwiki__custom_theme_name: ""
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
ansible.builtin.git:
|
||||
june marked this conversation as resolved
june
commented
And then set for
Documentation for `ansible-lint` is failing as this module-use isn't idempotent. Let's introduce the following option and attribute for the module, to make it theoretically possible to be idempotent:
```yaml
dokuwiki__custom_theme_version: "main"
```
And then set for `ansible.builtin.git`:
```yaml
version: "{{ dokuwiki__custom_theme_version }}"
```
Documentation for `dokuwiki__custom_theme_version` would be: version (git branch, tag, ...) to checkout, default `main`
|
||||
repo: "{{ dokuwiki__custom_theme_git_url }}"
|
||||
dest: "{{ dokuwiki__installpath }}/lib/tpl/{{ dokuwiki__custom_theme_name }}"
|
||||
version: "{{ dokuwiki__custom_theme_version }}"
|
||||
force: true
|
||||
depth: 1
|
||||
single_branch: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
Oh also please document both these options in the README.