๐Ÿ“— 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.

19 lines
463 B

2 years ago
{% 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 %}