Giter Club home page Giter Club logo

ansible-role-php-mysql's Introduction

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.

ansible-role-php-mysql's People

Contributors

geerlingguy avatar shkkmo avatar thom8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-role-php-mysql's Issues

Restart php if running as php-fpm

Just spent an hour debugging something this morning that was a result of php-fpm not being restarted after installing php's MySQL PDO extension. Oops! I need to add a 'restart php' (something like that) notification whenever this role installs or changes anything.

Rocky Linux 8 (CentOS 8) failing with All matches were filtered out by modular filtering for argument: php-mysql

TASK [geerlingguy.php-mysql : Install PHP MySQL dependencies (RedHat).] ********
(https://github.com/geerlingguy/ansible-role-php-mysql/actions/runs/3635042618/jobs/6133767939#step:6:483)
  fatal: [instance]: FAILED! => {"changed": false, "failures": ["php-mysql All matches were filtered out by modular filtering for argument: php-mysql"], "msg": "Failed to install some of the specified packages", "rc": 1, "results": []}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.