dokuwiki: factor out nginx-php role
This commit is contained in:
parent
52f8ed5a2d
commit
04f187a140
|
@ -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:
|
||||||
|
|
5
roles/nginx-php/handlers/main.yml
Normal file
5
roles/nginx-php/handlers/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
- name: restart php-fpm
|
||||||
|
service:
|
||||||
|
name: 'php-fpm{{ php_version }}'
|
||||||
|
state: restarted
|
||||||
|
when: "'handler' not in ansible_skip_tags"
|
Loading…
Reference in a new issue