dokuwiki: add ability to checkout custom theme repo
This commit is contained in:
parent
79012fb7f8
commit
7ec61f45b3
2 changed files with 17 additions and 0 deletions
|
@ -3,3 +3,5 @@ dokuwiki__installpath: "/var/www/dokuwiki"
|
||||||
dokuwiki__php_version: "{{ dokuwiki__php_versions[ansible_distribution + '-' + ansible_distribution_major_version] }}"
|
dokuwiki__php_version: "{{ dokuwiki__php_versions[ansible_distribution + '-' + ansible_distribution_major_version] }}"
|
||||||
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_name: ""
|
||||||
|
|
|
@ -42,3 +42,18 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: checkout custom theme git repo
|
||||||
|
become: true
|
||||||
|
ansible.builtin.git:
|
||||||
|
repo: "{{ dokuwiki__custom_theme_git_url }}"
|
||||||
|
dest: "{{ dokuwiki__installpath }}/lib/tpl/{{ dokuwiki__custom_theme_name }}"
|
||||||
|
force: true
|
||||||
|
depth: 1
|
||||||
|
single_branch: true
|
||||||
|
track_submodules: true
|
||||||
|
accept_hostkey: true
|
||||||
|
accept_newhostkey: true
|
||||||
|
when:
|
||||||
|
- dokuwiki__custom_theme_git_url != ""
|
||||||
|
- dokuwiki__custom_theme_name != ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue