When running ansible-playbood --check --diff in Ubuntu, the following step is executed by Ansible
TASK [geerlingguy.php : Ensure php-fpm is started and enabled at boot (if configured).] ***
fatal: [***]: FAILED! => {"changed": false, "msg": "Could not find the requested service php8.1-fpm: host"}
My understanding is that it can never succeed since this a dry run, and the service has never been installed. I can see that this step is omitted when running in Debian
When running
ansible-playbood --check --diff
in Ubuntu, the following step is executed by AnsibleTASK [geerlingguy.php : Ensure php-fpm is started and enabled at boot (if configured).] ***
fatal: [***]: FAILED! => {"changed": false, "msg": "Could not find the requested service php8.1-fpm: host"}
My understanding is that it can never succeed since this a dry run, and the service has never been installed. I can see that this step is omitted when running in Debian
https://github.com/geerlingguy/ansible-role-php/blob/7a1597c1ce6da36770f6a7615b031f2c4112da1d/tasks/configure-fpm.yml#L53
Perhaps there should be the same clause for Ubuntu, i.e.
?
This is the definition of what I am trying to execute
php_default_version: "8.1"
Some debug output
Thank you