--- - name: Restart PHP-FPM ansible.builtin.service: name: "php{{ php_version }}-fpm.service" state: restarted ...