fpm: don't extend pool-dependency if no pool

This commit is contained in:
Adrien "ze" Urban 2018-06-07 16:08:38 +02:00
parent 4a0dfac0b0
commit e18b2be86d

View File

@ -13,10 +13,12 @@ include:
- php.ng.fpm.service
- php.ng.fpm.pools_config
{% if pool_states %}
extend:
php_fpm_service:
service:
- watch:
{{ file_requisites(pool_states) }}
{{ file_requisites(pool_states) }}
- require:
{{ file_requisites(pool_states) }}
{{ file_requisites(pool_states) }}
{% endif %}