You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
postgresql_server handler to restart postgreql fails when postgresql_server__version is empty. #393
Hi
When I use postgresql_server, I get an error like:
FAILED! => {"changed": false, "msg": "Could not find the requested service postgresql-: host"}
with the minus added to the service name. This seems to happen, when postgresql_server__version is empty and the handler to restart the postgresql service is called.
A workaround is to set lfops__skip_restart_handlers: true.
Steps to reproduce
Run the task without a value for postgresql_server__version.
The problem is already fixed in #380, I'll merge that soon. Note that we switched to only installing PostgreSQL from their upstream PostgreSQL Yum Repository in that PR, which makes postgresql_server__version a mandatory variable. Let me know if this would be a problem for you.
Activity
NavidSassan commentedon Sep 22, 2026
Hi @mdicss
Thanks for the report!
The problem is already fixed in #380, I'll merge that soon. Note that we switched to only installing PostgreSQL from their upstream PostgreSQL Yum Repository in that PR, which makes
postgresql_server__versiona mandatory variable. Let me know if this would be a problem for you.mdicss commentedon Sep 23, 2026
Thank you.
It is no Problem to have the version mandatory. I can change the playbook to use a specific version.