buluma.php_fpm
Ansible Role php_fpm
This role helps you install and set up php_fpm on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
The following example is from molecule/default/converge.yml
and is tested whenever changes are made.
---
- name: Converge
hosts: all
become: true
gather_facts: true
roles:
- role: buluma.php_fpm
You need to prepare the machine first. In CI, this is done using molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: false
become: true
roles:
- role: buluma.bootstrap
- role: buluma.epel
- role: buluma.buildtools
- role: buluma.python_pip
- role: buluma.openssl
openssl_items:
- name: apache-httpd
common_name: "{{ ansible_fqdn }}"
- role: buluma.httpd
You can find a full explanation and example on how to use these roles.
Role Variables
Default values for the variables are set in defaults/main.yml
:
---
# defaults file for php_fpm
# The `php_fpm_listen` parameter can be an address:port combination or a path if you want to use a socket. For example: "127.0.0.1:9000"
php_fpm_listen: "{{ php_fpm_pid_directory }}/www.sock"
# If you're using a socket with `php_fpm_listen`, you can set the user and group. Defaults are in `vars/main.yml`
php_fpm_listen_owner: "{{ php_fpm_owner }}"
php_fpm_listen_group: "{{ php_fpm_group }}"
php_fpm_listen_mode: "0666"
php_fpm_pm: dynamic
php_fpm_pm_max_children: 5
php_fpm_pm_start_servers: 2
php_fpm_pm_min_spare_servers: 1
php_fpm_pm_max_spare_servers: 3
Requirements
- Python packages listed in requirements.txt.
State of Used Roles
These roles are used to prepare the system. You can prepare your system differently.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.buildtools | ||
buluma.epel | ||
buluma.openssl | ||
buluma.python_pip | ||
buluma.selinux | ||
buluma.httpd |
Context
This role is part of several related roles. Check out the documentation of these roles for more details.
Here is an overview of the related roles:
Compatibility
This role has been tested on these container images:
Container | Tags |
---|---|
Debian | jessie, stretch |
Fedora | all |
openSUSE | all |
Ubuntu | bionic |
The minimum required version of Ansible is 2.12. Tests have been performed on:
- The previous version.
- The current version.
- The development version.
If you encounter any issues, please report them on GitHub
Changelog
License
Author Information
The purpose of this role is to install and configure php_fpm on your system.
ansible-galaxy install buluma.php_fpm