No description
Find a file
Mark van Huijstee 9f004f3099
Merge pull request #23 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 12:39:44 +01:00
.github/workflows Update supported platforms & CI 2026-03-14 19:51:53 +01:00
defaults fix: Fix loop label to string 2023-09-17 22:22:53 +02:00
handlers feat: Add dict 'php_ini_settings' of configurable php settings 2022-10-06 10:10:28 +02:00
meta Update supported platforms & CI 2025-08-06 21:02:28 +02:00
molecule/default Update supported platforms & CI 2026-03-14 15:13:15 +01:00
tasks Update supported platforms & CI 2025-08-06 21:02:28 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-09 22:07:46 +02:00
.cicd Update CI 2026-03-06 22:59:56 +01:00
.cicd.overwrite Update CI 2026-03-06 22:59:56 +01:00
.collections feat: Move to FQCN 2022-10-09 22:07:25 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 11:41:03 +01:00
.releaserc.yml Update CI 2026-03-06 22:59:56 +01:00
.roles feat: Update CI to latest standards 2022-10-09 22:07:46 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 11:41:03 +01:00
CHANGELOG.md chore(release): 1.8.0 [skip ci] 2025-08-07 16:45:22 +00:00
README.md Update CI 2026-03-06 22:59:56 +01:00

CI

php

Manages php

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • Red Hat Enterprise Linux 91
  • Red Hat Enterprise Linux 101
  • RockyLinux 8
  • RockyLinux 9
  • RockyLinux 10
  • OracleLinux 8
  • OracleLinux 9
  • OracleLinux 10
  • AlmaLinux 8
  • AlmaLinux 9
  • AlmaLinux 10
  • Debian 11 (Bullseye)
  • Debian 12 (Bookworm)
  • Debian 13 (Trixie)
  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# php version
php_version: 7.4

# php release
php_release: php74

# Default PHP packages
php_packages:
  - php
  - php-common
  - php-curl
  - php-fpm
  - php-gd
  - php-gmp
  - php-intl
  - php-json
  - php-mbstring
  - php-mysqlnd
  - php-xml
  - php-zip

# Additional PHP packages
php_packages_additional: []

# Settings to configure in /etc/php.ini
php_ini_settings:
  date.timezone: Europe/Amsterdam
  post_max_size: 25M
  upload_max_filesize: 25M

defaults/family-Debian.yml


# name of the php socket
php_socket: /run/php/php{{ php_version }}-fpm.sock

# OS specific packages
php_packages_os:
  - libapache2-mod-php

# php-fpm service
php_fpm_service: "php{{ php_version }}-fpm"

# apache service
php_apache_service: apache2

defaults/family-RedHat.yml


# name of the php socket
php_socket: /var/run/php-fpm/www.sock

# OS specific packages
php_packages_os: []

# php-fpm service
php_fpm_service: "php-fpm"

# apache service
php_apache_service: httpd

defaults/family-Suse.yml


# name of the php socket
php_socket: /var/run/php-fpm/www.sock

# OS specific packages
php_packages_os: []

# php-fpm service
php_fpm_service: "php-fpm"

# apache service
php_apache_service: httpd

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'php'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    openssl_fqdn: server.example.com
    apache_fqdn: server.example.com
    apache_ssl_key: '{{ openssl_server_key }}'
    apache_ssl_crt: '{{ openssl_server_crt }}'
    apache_ssl_chain: '{{ openssl_server_crt }}'
  roles:
    - deitkrachten.openssl
    - deitkrachten.apache
  tasks:
    - name: Include role 'php'
      ansible.builtin.include_role:
        name: php