mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
commit
92517abdd5
@ -12,5 +12,6 @@ php_enable_webserver: true
|
|||||||
php_webserver_daemon: "httpd"
|
php_webserver_daemon: "httpd"
|
||||||
|
|
||||||
php_enable_php_fpm: false
|
php_enable_php_fpm: false
|
||||||
|
php_enable_apc: true
|
||||||
|
|
||||||
php_sendmail_path: "/usr/sbin/sendmail -t -i"
|
php_sendmail_path: "/usr/sbin/sendmail -t -i"
|
||||||
|
@ -23,14 +23,19 @@
|
|||||||
notify: restart webserver
|
notify: restart webserver
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
||||||
- name: Place PHP configuration files in place.
|
- name: Place PHP configuration file in place.
|
||||||
template: >
|
template: >
|
||||||
src={{ item.src }}
|
src=php.ini.j2
|
||||||
dest={{ item.dest }}
|
dest={{ php_conf_path }}/php.ini
|
||||||
owner=root group=root mode=644
|
owner=root group=root mode=644
|
||||||
with_items:
|
notify: restart webserver
|
||||||
- { src: php.ini.j2, dest: "{{ php_conf_path }}/php.ini" }
|
|
||||||
- { src: apc.ini.j2, dest: "{{ php_extension_conf_path }}/{{ php_apc_conf_filename }}" }
|
- name: Place APC configuration file in place.
|
||||||
|
template: >
|
||||||
|
src=apc.ini.j2
|
||||||
|
dest={{ php_extension_conf_path }}/{{ php_apc_conf_filename }}
|
||||||
|
owner=root group=root mode=644
|
||||||
|
when: php_enable_apc
|
||||||
notify: restart webserver
|
notify: restart webserver
|
||||||
|
|
||||||
- name: Ensure php-fpm is started and enabled at boot (if configured).
|
- name: Ensure php-fpm is started and enabled at boot (if configured).
|
||||||
|
Loading…
Reference in New Issue
Block a user