No description
Find a file
2024-07-26 16:40:07 +02:00
defaults added php8.2 2024-03-16 23:08:05 +01:00
handlers Migration commit 2021-04-13 01:17:38 +02:00
Playbooks Migration commit 2021-04-13 01:17:38 +02:00
tasks added cleanup tasks; updated readme file 2024-07-26 16:40:07 +02:00
templates added php8.2 2024-03-16 23:08:05 +01:00
.gitignore Migration commit 2021-04-13 01:17:38 +02:00
LICENSE Migration commit 2021-04-13 01:17:38 +02:00
README.md added cleanup tasks; updated readme file 2024-07-26 16:40:07 +02:00
Vagrantfile added php8.2 2024-03-16 23:08:05 +01:00

PHP-FPM - Ansible Role

Role covers deployment, configuration and software updates of php-fpm and php-modules. This role is released under MIT Licence and we give no warranty for this piece of software. Currently supported OS - Debian. PHP repository used in the role is coming from: https://packages.sury.org/php/

Variables, versions and modules

defaults/main.yml provides example variables that can be used with the role. To modify any of the settings, specify apropriate variables in your host_vars`` file. To specify php-fpm version, copy and edit php_versionin your host_vars file. To install php modules, specify packages underphp_pkgs` array. For example:

php_pkgs:
  - php{{ php_version }}-fpm
  - php{{ php_version }}-bz2
  - php{{ php_version }}-cgi
  - php{{ php_version }}-cli
  - php{{ php_version }}-common
  - php{{ php_version }}-curl
  - php{{ php_version }}-dev
  - php{{ php_version }}-enchant
  - php{{ php_version }}-gd
  - php{{ php_version }}-gmp
  - php{{ php_version }}-igbinary
  - php{{ php_version }}-interbase
  - php{{ php_version }}-intl
  - php{{ php_version }}-mbstring
  - php{{ php_version }}-msgpack
  - php{{ php_version }}-pspell
  - php{{ php_version }}-readline
  - php{{ php_version }}-zip

Supported versions and cleanup

Supported versions of php-fpm:

  • 8.2 (default)
  • 8.1
  • 8.0 Note! Role assumes only one version of php should be installed on the host and so it will remove all packages and configuration files other then {{php_version }}