dokuwiki: factor out nginx-php role

This commit is contained in:
Timotej Lazar 2024-12-06 13:07:01 +01:00
parent 52f8ed5a2d
commit 04f187a140
4 changed files with 7 additions and 3 deletions

View file

@ -1,9 +1,7 @@
- name: Set up PHP
import_tasks: php.yml
- name: Install packages - name: Install packages
package: package:
name: php-openssl,php-session,php-xml name: php-openssl,php-session,php-xml
notify: restart php-fpm
- name: Check if dokuwiki should be upgraded - name: Check if dokuwiki should be upgraded
lineinfile: lineinfile:

View file

@ -0,0 +1,5 @@
- name: restart php-fpm
service:
name: 'php-fpm{{ php_version }}'
state: restarted
when: "'handler' not in ansible_skip_tags"

View file

@ -38,6 +38,7 @@
roles: roles:
- alpine - alpine
- nginx - nginx
- nginx-php
- dokuwiki - dokuwiki
- hosts: netbox - hosts: netbox