geerlingguy.php-mysql

Ansible Role: PHP-MySQL

CI

This role installs PHP support for MySQL on Linux systems.

Requirements

No special requirements.

Role Variables

Here are the available variables and their default values (see defaults/main.yml):

php_enablerepo: ""

(Only for RedHat/CentOS) If you have added any extra repositories (like geerlingguy.repo-epel or geerlingguy.repo-remi), you can list them here (e.g. remi,epel). This helps in installing newer versions of PHP packages.

php_mysql_package: php-mysqlnd # for RedHat
php_mysql_package: php8.2-mysql # for Debian

This variable defines the PHP MySQL package to be installed via apt or yum. Change this only if you need a specific MySQL package, like when using software collections on Enterprise Linux or if using an older 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, the author of Ansible for DevOps.

Informazioni sul progetto

PHP MySQL support for Linux.

Installa
ansible-galaxy install geerlingguy.php-mysql
Licenza
mit
Download
353.9k
Proprietario
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns