๐Ÿ“— Ansible playbooks and roles for building an idempotent, interconnected and scalable infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
ansible-playbooks/roles/php/templates/fpm.j2

18 lines
463 B

{% macro fpm_option(option) -%}
{% if option.value is boolean -%}
{{ option.key }} = {{ 'yes' if option.value else 'no' -}}
{% else -%}
{{ option.key }} = {{ option.value -}}
{% endif -%}
{% endmacro -%}
[{{ php_fpm_listener }}]
{% for option in (php_fpm_cfg.listener | d({}) | dict2items) -%}
{{ fpm_option(option) }}
{% endfor %}
[global]
{% for option in (php_fpm_cfg.global | d({}) | dict2items) -%}
{{ fpm_option(option) }}
{% endfor %}