--- - name: "Reload PHP-FPM Services" ansible.builtin.service: name: "php{{ item }}-fpm" state: reloaded loop: "{{ php_versions_to_install }}" when: php_versions_to_install is defined and php_versions_to_install | length > 0