mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Add the ability to choose --no-install-recommends for apt installs.
This commit is contained in:
parent
66bfceb596
commit
06d8a0edd2
@ -34,6 +34,10 @@ 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.
|
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: ''
|
||||||
|
|
||||||
|
(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!).
|
||||||
|
|
||||||
php_executable: "php"
|
php_executable: "php"
|
||||||
|
|
||||||
The executable to run when calling PHP from the command line. You should only change this if running `php` on your server doesn't target the correct executable, or if you're using software collections on RHEL/CentOS and need to target a different version of PHP.
|
The executable to run when calling PHP from the command line. You should only change this if running `php` on your server doesn't target the correct executable, or if you're using software collections on RHEL/CentOS and need to target a different version of PHP.
|
||||||
|
@ -7,6 +7,9 @@ php_enablerepo: ""
|
|||||||
# you want to upgrade or switch versions using a new repo.
|
# you want to upgrade or switch versions using a new repo.
|
||||||
php_packages_state: installed
|
php_packages_state: installed
|
||||||
|
|
||||||
|
# Whether to install recommended packages. Used only for Debian/Ubuntu.
|
||||||
|
php_install_recommends: ''
|
||||||
|
|
||||||
# Set this to false if you're not using PHP with Apache/Nginx/etc.
|
# Set this to false if you're not using PHP with Apache/Nginx/etc.
|
||||||
php_enable_webserver: true
|
php_enable_webserver: true
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: "{{ php_packages_state }}"
|
state: "{{ php_packages_state }}"
|
||||||
|
install_recommends: "{{ php_install_recommends | default(omit) }}"
|
||||||
with_items: "{{ php_packages }}"
|
with_items: "{{ php_packages }}"
|
||||||
register: php_package_install
|
register: php_package_install
|
||||||
notify: restart webserver
|
notify: restart webserver
|
||||||
|
Loading…
Reference in New Issue
Block a user