dokuwiki: update role to support Debian 12

This commit is contained in:
June 2024-12-08 18:37:41 +01:00
parent 19abc5f585
commit 03e994b41f
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
4 changed files with 14 additions and 3 deletions
roles/dokuwiki

View file

@ -10,6 +10,7 @@ Please download it from https://download.dokuwiki.org.
The following distributions are supported:
- Debian 11
- Debian 12
## Required Arguments
@ -18,7 +19,7 @@ None.
## Optional Argument
- `dokuwiki__installpath`: Where your DokiWiki lives, default `/var/www/dokuwiki`
- `dokuwiki__php_version`: Your PHP version, default `7.4`
- `dokuwiki__php_version`: Your PHP version, default `7.4` for Debian 11 and `8.2` for Debian 12
- `dokuwiki__php_user`: User of your php-fpm process, default `www-data`
- `dokuwiki__nginx_user`: User of your nginx process, default `nginx`

View file

@ -1,5 +1,4 @@
---
dokuwiki__installpath: "/var/www/dokuwiki"
dokuwiki__php_version: "7.4"
dokuwiki__php_user: "www-data"
dokuwiki__nginx_user: "nginx"

View file

@ -4,5 +4,6 @@ dependencies:
vars:
distribution_check__distribution_support_spec:
- name: Debian
versions:
major_versions:
- 11
- 12

View file

@ -1,3 +1,13 @@
- name: set php version to target
ansible.builtin.set_fact:
dokuwiki__php_version: '7.4'
when: dokuwiki__php_version is undefined and ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "11"
- name: set php version to target
ansible.builtin.set_fact:
dokuwiki__php_version: '8.2'
when: dokuwiki__php_version is undefined and ansible_facts['distribution'] == "Debian" and ansible_facts['distribution_major_version'] == "12"
- name: Install php-fpm
become: true
ansible.builtin.apt: