mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-28 12:45:16 +01:00
Users can now set the apt/yum module 'state' to be 'installed, latest, present' etc. This allows a user to test php55, swap a variable to enable the php56 repo, then re-run the ansible play to get different PHP packages.
This commit is contained in:
parent
14eed984ef
commit
f20bbde884
@ -2,6 +2,9 @@
|
||||
# Pass in a comma-separated list of repos to use (e.g. "remi,epel").
|
||||
php_enablerepo: ""
|
||||
|
||||
# State that the system package installer should use for PHP the enabled repo (e.g. "installed,latest")
|
||||
php_repostate: installed
|
||||
|
||||
# Set this to false if you're not using PHP with Apache/Nginx/etc.
|
||||
php_enable_webserver: true
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
- name: Ensure PHP packages are installed.
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
state: "{{ php_repostate }}"
|
||||
with_items: "{{ php_packages }}"
|
||||
register: php_package_install
|
||||
notify: restart webserver
|
||||
|
@ -2,7 +2,7 @@
|
||||
- name: Ensure PHP packages are installed.
|
||||
yum:
|
||||
name: "{{ item }}"
|
||||
state: installed
|
||||
state: "{{ php_repostate }}"
|
||||
enablerepo: "{{ php_enablerepo }}"
|
||||
with_items: "{{ php_packages }}"
|
||||
notify: restart webserver
|
||||
|
Loading…
Reference in New Issue
Block a user