Skip to content
Snippets Groups Projects
Verified Commit 89f827e3 authored by Chris Croome's avatar Chris Croome
Browse files

README updated

parent 71bd6f1d
No related branches found
No related tags found
No related merge requests found
Pipeline #29543 passed
......@@ -4,14 +4,14 @@
This Ansible role is designed to install and configure PHP on Debian, by default it installs PHP packaged by Ondřej Surý from [deb.sury.org](https://deb.sury.org/), but it can also be used to install and configure PHP packages from Debian.
This role is tested using `molecule` via [GitLab CI](.gitlab-ci.yml) on Debian Bookworm using [three molecule senarios](molecule/), firstly by installing and configuring the Debian Bookworm PHP CLI Server API (SAPI), secondly installing the Debian Bookworm FPM SAPI and finally installing the Ondřej Surý packages.
This role is tested using `molecule` via [GitLab CI](.gitlab-ci.yml) on Debian Bookworm using [three molecule senarios](molecule/), firstly by installing and configuring the Debian Bookworm PHP CLI Server API (SAPI), secondly installing the Debian Bookworm FPM SAPI and finally installing the Ondřej Surý packages and enabling and starting PHP-FPM pools for PHP 7.4, 8.0, 8.1 and 8.2.
This role enforces unique PHP-FPM pool names across all versions of PHP as this enables better monitoring, by default the `www` pools are renamed to `www82`, `www81` etc.
## Role variables
See the [defaults/main.yml](defaults/main.yml) file for the default variables, the [vars/main.yml](vars/main.yml) file for the preset variables and the [meta/argument_specs.yml](meta/argument_specs.yml) file for the variable specification.
This role enforces unique PHP-FPM pool names across all versions of PHP as this enables better monitoring, by default the `www` pools are renamed to `www82`, `www81` etc.
This role has two required boolean variables, [php](#php) and [php_fpm_pool_check_fail](#php_fpm_pool_check_fail), two optional boolean variables, [php_check_legacy_variables](#php_check_legacy_variables), [php_sury](#php_sury) and [php_verify](#php_verify) and three optional lists, [php_config](#php_config), [php_modules](#php_modules) and [php_versions](#php_versions), the [VARIABLES.md](VARIABLES.md) file contains documentation generated from the [meta/argument_specs.yml](meta/argument_specs.yml) for all the variables including the internal ones.
### php
......
......@@ -177,6 +177,7 @@
ansible.builtin.assert:
that:
- molecule_php_present == molecule_php_required
quiet: true
rescue:
......
......@@ -225,6 +225,7 @@
ansible.builtin.assert:
that:
- molecule_php_present == molecule_php_required
quiet: true
rescue:
......
......@@ -526,6 +526,7 @@
ansible.builtin.assert:
that:
- molecule_php_present == molecule_php_required
quiet: true
rescue:
......@@ -552,6 +553,7 @@
ansible.builtin.assert:
that:
- molecule_php_service_facts | community.general.json_query(molecule_php_fpm_ver_jpq) == "running"
quiet: true
vars:
molecule_php_fpm_ver_jpq: 'ansible_facts.services.["php{{ molecule_php_fpm_ver }}-fpm.service"]|[0].state'
loop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment