mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2025-01-24 21:41:21 +01:00
Fix test failures due to boolean handling in YAML.
This commit is contained in:
parent
06d8a0edd2
commit
08c948d24f
@ -34,7 +34,7 @@ The default values for the HTTP server deamon are `httpd` (used by Apache) for R
|
||||
|
||||
If you have enabled any additional repositories such as [geerlingguy.repo-epel](https://github.com/geerlingguy/ansible-role-repo-epel) or [geerlingguy.repo-remi](https://github.com/geerlingguy/ansible-role-repo-remi), you may want an easy way to swap PHP versions on the fly. By default, this is set to 'installed'. You can now override this variable to 'latest'. Combined with php_enablerepo, a user now doesn't need to manually uninstall the existing PHP packages before installing them from a different repository.
|
||||
|
||||
php_install_recommends: ''
|
||||
php_install_recommends: yes
|
||||
|
||||
(Debian/Ubuntu only) Whether to install recommended packages when installing `php_packages`; you might want to set this to `no` explicitly if you're installing a PPA that recommends certain packages you don't want (e.g. Ondrej's `php` PPA will install `php7.0-cli` if you install `php-pear` alongside `php5.6-cli`... which is often not desired!).
|
||||
|
||||
|
@ -8,7 +8,7 @@ php_enablerepo: ""
|
||||
php_packages_state: installed
|
||||
|
||||
# Whether to install recommended packages. Used only for Debian/Ubuntu.
|
||||
php_install_recommends: ''
|
||||
php_install_recommends: yes
|
||||
|
||||
# Set this to false if you're not using PHP with Apache/Nginx/etc.
|
||||
php_enable_webserver: true
|
||||
|
@ -6,7 +6,7 @@
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: "{{ php_packages_state }}"
|
||||
install_recommends: "{{ php_install_recommends | default(omit) }}"
|
||||
install_recommends: "{{ php_install_recommends }}"
|
||||
with_items: "{{ php_packages }}"
|
||||
register: php_package_install
|
||||
notify: restart webserver
|
||||
|
Loading…
Reference in New Issue
Block a user