dokuwiki: add ability to checkout custom theme repo #21
3 changed files with 3 additions and 0 deletions
commit
b5ddebcada
|
@ -23,6 +23,7 @@ None.
|
||||||
- `dokuwiki__php_user`: User of your php-fpm process, default `www-data`
|
- `dokuwiki__php_user`: User of your php-fpm process, default `www-data`
|
||||||
- `dokuwiki__nginx_user`: User of your nginx process, default `nginx`
|
- `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_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
|
- `dokuwiki__custom_theme_name`: Name of the directory into which the custom theme is cloned
|
||||||
|
|
||||||
## nginx Configuration
|
## nginx Configuration
|
||||||
|
|
|
@ -4,4 +4,5 @@ dokuwiki__php_version: "{{ dokuwiki__php_versions[ansible_distribution + '-' + a
|
||||||
dokuwiki__php_user: "www-data"
|
dokuwiki__php_user: "www-data"
|
||||||
dokuwiki__nginx_user: "nginx"
|
dokuwiki__nginx_user: "nginx"
|
||||||
dokuwiki__custom_theme_git_url: ""
|
dokuwiki__custom_theme_git_url: ""
|
||||||
|
dokuwiki__custom_theme_version: "main"
|
||||||
june marked this conversation as resolved
Outdated
|
|||||||
dokuwiki__custom_theme_name: ""
|
dokuwiki__custom_theme_name: ""
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
ansible.builtin.git:
|
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 }}"
|
repo: "{{ dokuwiki__custom_theme_git_url }}"
|
||||||
dest: "{{ dokuwiki__installpath }}/lib/tpl/{{ dokuwiki__custom_theme_name }}"
|
dest: "{{ dokuwiki__installpath }}/lib/tpl/{{ dokuwiki__custom_theme_name }}"
|
||||||
|
version: "{{ dokuwiki__custom_theme_version }}"
|
||||||
force: true
|
force: true
|
||||||
depth: 1
|
depth: 1
|
||||||
single_branch: true
|
single_branch: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
Oh also please document both these options in the README.