Fix deprecation warnings in Ansible 2.5 for state 'present'.

This commit is contained in:
Jeff Geerling 2018-04-04 14:01:58 -05:00
parent 46d6d3e0d8
commit 3780da1445
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,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-php70,epel`). This can be handy, as an example, if you want to install the latest version of PHP 7.0, which is in the Remi repository.
php_packages_state: "installed"
php_packages_state: "present"
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,9 +3,9 @@
# for RHEL/CentOS.
php_enablerepo: ""
# PHP package state; use 'installed' to make sure it's installed, or 'latest' if
# PHP package state; use 'present' to make sure it's installed, or 'latest' if
# you want to upgrade or switch versions using a new repo.
php_packages_state: installed
php_packages_state: present
# Whether to install recommended packages. Used only for Debian/Ubuntu.
php_install_recommends: yes