{% if ansible_prolog -%} {% from 'templates/ansible/prolog.j2' import prolog with context %} {{ prolog() }} {% endif -%} upstream fpm-backend { # Depending on the IP ensure that the same server will handle the request #ip_hash; {% for num in range(0, fpm_pool_count, 1) %} {% if ansible_lsb.major_release|int >= 9 %} server unix:/run/php/php{{ php_version }}-fpm-pool-www{{ num }}.sock; {% else %} server unix:/var/run/php5-fpm-pool-www{{ num }}.sock; {% endif %} {% endfor %} }