Per comments on PR106

This commit is contained in:
Phil Porada 2016-05-02 08:57:32 -04:00
parent 4f2676b6b2
commit 11ed2172de
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ The default values for the HTTP server deamon are `httpd` (used by Apache) for R
(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest [geerlingguy.repo-epel](https://github.com/geerlingguy/ansible-role-repo-epel) or [geerlingguy.repo-remi](https://github.com/geerlingguy/ansible-role-repo-remi)), those repositories can be listed under this variable (e.g. `remi-php56,epel`). This can be handy, as an example, if you want to install the latest version of PHP 5.6, which is in the Remi repository.
php_repostate: "installed"
php_packages_state: "installed"
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.

View File

@ -3,7 +3,7 @@
php_enablerepo: ""
# State that the system package installer should use for PHP the enabled repo (e.g. "installed,latest")
php_repostate: installed
php_packages_state: installed
# Set this to false if you're not using PHP with Apache/Nginx/etc.
php_enable_webserver: true

View File

@ -5,7 +5,7 @@
- name: Ensure PHP packages are installed.
apt:
name: "{{ item }}"
state: "{{ php_repostate }}"
state: "{{ php_packages_state }}"
with_items: "{{ php_packages }}"
register: php_package_install
notify: restart webserver

View File

@ -2,7 +2,7 @@
- name: Ensure PHP packages are installed.
yum:
name: "{{ item }}"
state: "{{ php_repostate }}"
state: "{{ php_packages_state }}"
enablerepo: "{{ php_enablerepo }}"
with_items: "{{ php_packages }}"
notify: restart webserver