Ansible Role - PHP MySQL support
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults Use defaults instead of vars so vars are overridable. Jun 28, 2015
meta Switch tests to use Molecule. Sep 29, 2018
molecule/default Use correct php_mysql_package in tests. Oct 24, 2018
tasks Fix broken behavior under Ansible 2.7 due to yum module change. Oct 8, 2018
vars
.gitignore
.travis.yml Update tests for optimum efficiency. Oct 23, 2018
LICENSE Add a LICENSE file for MIT license. [ci skip] Mar 31, 2017
README.md Update the author's URL. Now with more HTTPS! Jan 22, 2017

README.md

Ansible Role: PHP-MySQL

Build Status

Installs PHP MySQL support on Linux.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

php_enablerepo: ""

(RedHat/CentOS only) If you have enabled any additional repositories (might I suggest geerlingguy.repo-epel or geerlingguy.repo-remi), those repositories can be listed under this variable (e.g. remi,epel). This can allow you to install later versions of PHP packages.

php_mysql_package: php-mysql # RedHat
php_mysql_package: php5-mysql # Debian

The PHP MySQL package to install via apt/yum. This should only be overridden if you need to install a unique/special package for MySQL support, as in the case of using software collections on Enterprise Linux.

Dependencies

  • geerlingguy.php

Example Playbook

- hosts: webservers
  roles:
    - { role: geerlingguy.php-mysql }

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.