Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

geerlingguy/ansible-role-php-mysql

Repository files navigation

Ansible Role: PHP-MySQL

CI

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-mysqlnd # RedHat
php_mysql_package: php8.2-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, or if you need to set an old package name (e.g. php-mysql on RHEL 7).

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.

Sponsor this project

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /