add php role
This commit is contained in:
parent
8bc03f07a6
commit
09fd76d1ef
@ -0,0 +1 @@
|
|||||||
|
php_extention_enable: []
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- name: reload_php_fpm
|
||||||
|
service: name=php-fpm state=restarted
|
||||||
|
become: yes
|
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure php is installed.
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- php
|
||||||
|
- php-fpm
|
||||||
|
state: present
|
||||||
|
become: yes
|
||||||
|
- name: Ensure php-fpm is started and enabled to start at boot.
|
||||||
|
service: name=php-fpm state=started enabled=yes
|
||||||
|
become: yes
|
||||||
|
|
||||||
|
- name: enable php extetion
|
||||||
|
become: true
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/php/php.ini
|
||||||
|
regexp: ";extension={{item}}"
|
||||||
|
line: "extension={{item}}"
|
||||||
|
with_items: "{{php_extention_enable}}"
|
||||||
|
notify: reload_php_fpm
|
Loading…
Reference in New Issue
Block a user