2025-02-21 14:08:06 +01:00
2024-09-04 11:48:54 +02:00
2024-03-07 09:22:59 +01:00
2024-01-18 11:21:35 +01:00
2024-09-05 18:12:58 +02:00
2025-02-21 14:08:06 +01:00
2021-10-18 18:03:37 +02:00
2024-09-05 18:12:58 +02:00
2024-05-17 10:43:25 +02:00

Role Name

Install php-fpm (for apache)

and some php packages along the way

Requirements

None

Role Variables

php_pool_name: default {{ php_fpm_pool_user }}_{{ php_version_nodot }} php_fpm_listen_socket: NO DEFAULT php_fpm_create_pool: default false php_version: STRING default "8.2" php_fpm_pool_user: default apache php_fpm_pool_group: default apache php_pm: static php_pm_max_children: 1000 php_pm_max_requests: 10000 php_min_spare_servers: 5 php_max_spare_servers: 35 php_pm_status_url: /phpstatus php_packages: [ 'php{{ php_version_nodot }}-php-common' ] php_use_phpmyadmin: default false pma_install_dir: /var/www/html pma_version: 5.2.1

Dependencies

Better have apache

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

roles:

  • role: tconstans.php-fpm vars: php_pool_name: pool1 php_fpm_listen_url: "/srv/pool1/php-fpm.sock" php_version_nodot: 74 php_packages:
    • php{{ php_version_nodot }}-php-mbstring
    • php{{ php_version_nodot }}-php-mysqlnd
    • php{{ php_version_nodot }}-php-pdo
    • php{{ php_version_nodot }}-php-xml
    • php{{ php_version_nodot }}-php-gd
    • php{{ php_version_nodot }}-php-posix
    • php{{ php_version_nodot }}-php-ldap
    • php{{ php_version_nodot }}-php-curl
    • php{{ php_version_nodot }}-php-iconv
    • php{{ php_version_nodot }}-php-openssl
    • php{{ php_version_nodot }}-php-zip
    • php{{ php_version_nodot }}-php-zlib
    • php{{ php_version_nodot }}-php-ctype
  • role: tconstans.php-fpm vars: php_pool_name: pool2 php_fpm_listen_url: "/srv/pool2/php-fpm.sock" php_version_nodot: 80 php_packages:
    • php{{ php_version_nodot }}-php-zip License

BSD

Author Information

Thomas C thomas@opendoor.fr

Description
No description provided
Readme 69 KiB