Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geerlingguy/ansible-role-php-mysql
Ansible Role - PHP MySQL support
https://github.com/geerlingguy/ansible-role-php-mysql
ansible database extension mysql pdo php php-mysql role
Last synced: 6 days ago
JSON representation
Ansible Role - PHP MySQL support
- Host: GitHub
- URL: https://github.com/geerlingguy/ansible-role-php-mysql
- Owner: geerlingguy
- License: mit
- Created: 2014-03-01T03:24:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T03:49:23.000Z (6 months ago)
- Last Synced: 2025-01-09T07:05:41.725Z (13 days ago)
- Topics: ansible, database, extension, mysql, pdo, php, php-mysql, role
- Homepage: https://galaxy.ansible.com/geerlingguy/php-mysql/
- Size: 48.8 KB
- Stars: 41
- Watchers: 4
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: PHP-MySQL
[![CI](https://github.com/geerlingguy/ansible-role-php-mysql/workflows/CI/badge.svg?event=push)](https://github.com/geerlingguy/ansible-role-php-mysql/actions?query=workflow%3ACI)
Installs PHP [MySQL](https://www.mysql.com/) 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 # DebianThe 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](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).