First commit

This commit is contained in:
VC
2019-09-04 09:06:55 +02:00
commit dded46ff64
144 changed files with 7495 additions and 0 deletions

27
roles/php/tasks/main.yml Normal file
View File

@@ -0,0 +1,27 @@
- name: install php-fpm
package:
name: php-fpm
state: present
- name: configure php-fpm
copy:
src: ./files/www.conf
dest: /etc/php/{{ php_version }}/fpm/pool.d/www.conf
notify:
- restart php-fpm
- name: configure php
copy:
src: ./files/php.ini
dest: /etc/php/{{ php_version }}/fpm/php.ini
notify:
- restart php-fpm
- name: install lib for php
package:
name: "php-{{ item }}"
state: present
loop: "{{ php_modules }}"
notify:
- restart php-fpm