mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Merge pull request #4 from ajsalminen/allow_package_override
Allow overriding php_packages in more easily.
This commit is contained in:
commit
7709b3440c
@ -8,7 +8,6 @@ php_apc_enabled_in_ini: false
|
|||||||
php_apc_cache_by_default: "1"
|
php_apc_cache_by_default: "1"
|
||||||
php_apc_shm_size: "96M"
|
php_apc_shm_size: "96M"
|
||||||
php_date_timezone: "America/Chicago"
|
php_date_timezone: "America/Chicago"
|
||||||
php_packages: []
|
|
||||||
php_enable_webserver: true
|
php_enable_webserver: true
|
||||||
php_webserver_daemon: "httpd"
|
php_webserver_daemon: "httpd"
|
||||||
|
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
- name: Include OS-specific variables.
|
- name: Include OS-specific variables.
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
|
- name: Define php_packages.
|
||||||
|
set_fact: php_packages="{{ __php_packages | list }}"
|
||||||
|
when: php_packages is not defined
|
||||||
|
|
||||||
- name: Ensure PHP packages are installed (RedHat).
|
- name: Ensure PHP packages are installed (RedHat).
|
||||||
yum: >
|
yum: >
|
||||||
name={{ item }}
|
name={{ item }}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
php_conf_path: /etc/php5/apache2
|
php_conf_path: /etc/php5/apache2
|
||||||
php_extension_conf_path: /etc/php5/conf.d
|
php_extension_conf_path: /etc/php5/conf.d
|
||||||
php_apc_conf_filename: 20-apc.ini
|
php_apc_conf_filename: 20-apc.ini
|
||||||
php_packages:
|
__php_packages:
|
||||||
- php5
|
- php5
|
||||||
- libapache2-mod-php5
|
- libapache2-mod-php5
|
||||||
- php5-mcrypt
|
- php5-mcrypt
|
||||||
@ -12,6 +12,4 @@ php_packages:
|
|||||||
- php5-dev
|
- php5-dev
|
||||||
- php5-fpm
|
- php5-fpm
|
||||||
- php5-gd
|
- php5-gd
|
||||||
- php5-ldap
|
|
||||||
- php-apc
|
|
||||||
php_webserver_daemon: "apache2"
|
php_webserver_daemon: "apache2"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
php_conf_path: /etc
|
php_conf_path: /etc
|
||||||
php_extension_conf_path: /etc/php.d
|
php_extension_conf_path: /etc/php.d
|
||||||
php_apc_conf_filename: apc.ini
|
php_apc_conf_filename: apc.ini
|
||||||
php_packages:
|
__php_packages:
|
||||||
- ImageMagick
|
- ImageMagick
|
||||||
- php
|
- php
|
||||||
- php-cli
|
- php-cli
|
||||||
|
Loading…
Reference in New Issue
Block a user