[bug] OpenBSD service flag setting doesn't handle quotes correctly #77891
Labels
affects_2.12
bug
This issue/PR relates to a bug.
module
This issue/PR relates to a module.
needs_verified
This issue needs to be verified/reproduced by maintainer
P3
Priority 3 - Approved, No Time Limitation
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Summary
When setting the service flags for an OpenBSD service, quotes around any argument are removed by default.
Case in point, openldap service
slapd
needs to have its listen ip arguments in an quoted string, such as-h 'ldaps:// ldap:// ldapi:// ldapi://%2ftmp%2fslapd.sock ldapi://%2fvar%2fwww%2ftmp%2fslapd.sock'
, which needs to be set in ansible with the quotes escaped, i.e.-h \'ldaps:// ldap:// ldapi:// ldapi://%2ftmp%2fslapd.sock ldapi://%2fvar%2fwww%2ftmp%2fslapd.sock\'
Because of this, the service task always shows up as changed, even when nothing actually gets changed.
Issue Type
Bug Report
Component Name
service
Ansible Version
Configuration
OS / Environment
Controller OS - Gentoo
Target OS - OpenBSD current
Steps to Reproduce
Expected Results
Repeated runs of this should not show as changed.
Actual Results
Task shows up as changed every time it is run.
Code of Conduct
The text was updated successfully, but these errors were encountered: