--- - hosts: all vars: vhost: 'test.local' php_extra_packages: - '{{ php_package_prefix }}recode' php_install_xdebug: true php_ini_fpm: display_errors: 'Off' php_ini_cli: error_reporting: 'E_ALL' php_fpm_poold: - pool_name: 'www' listen: '{{ php_default_fpm_sock }}' pm: 'dynamic' pm_max_children: 250 pm_start_servers: 10 pm_min_spare_servers: 10 pm_max_spare_servers: 20 status_path: '/status' ping_path: '/ping' ping_response: 'ok' pre_tasks: - name: INCLUDE | Pre tasks related to OS include: "includes/pre_{{ ansible_os_family }}.yml" tasks: - name: TEMPLATE | Nginx site config template: src: "templates/site.j2" dest: "{{ __nginx_site_dir }}/{{ vhost }}" notify: reload nginx - name: FILE | Delete default site file: path: "{{ __nginx_site_dir }}/default" state: absent notify: reload nginx handlers: - name: reload nginx service: name: nginx state: reloaded roles: - ../../ post_tasks: - name: SHELL | Test php-cli shell: php -i | grep '^PHP Version => {{ php_version }}' | head -n 1 changed_when: false register: p failed_when: p.stdout == '' - name: FILE | Create /var/www file: dest: /var/www state: directory - name: COPY | Add phpinfo copy: dest: /var/www/phpinfo.php content: ' /dev/null | grep h1 | grep -o 'PHP Version {{ php_version }}' | sed -r 's/