Critical template bug
This: ```yaml systemd_units: - name: php8.4-fpm files: - path: /etc/systemd/system/php8.4-fpm.service.d/override.conf conf: Service: ExecStartPost: "" ExecStopPost: "" state: edited state: templated ``` Results in: ```ini # Ansible managed Service={'ExecStartPost': None, 'ExecStopPost': None} # vim: syntax=systemd ``` Where as: ```yaml systemd_units: - name: php8.4-fpm files: - path: /etc/systemd/system/php8.4-fpm.service.d/override.conf conf: Service: ExecStartPost: "" ExecStopPost: "" state: edited state: edited ``` Results in: ```ini # Ansible managed [Service] ExecStartPost= ExecStopPost= # vim: syntax=systemd ``` This looks to be the cause when no empty values are provided (no `""`) values: ``` TASK [systemd : The following dictionary has a depth of 1] ******************************************************************************************************************************************************** ok: [example.org.uk] => systemd_dictionary: Service: ExecStartPost: null ExecStopPost: null ``` And there is still a bug with empty values, this should be 3: ``` TASK [systemd : The following dictionary has a depth of 2] ******************************************************************************************************************************************************** ok: [wsh.webarchitects.org.uk] => systemd_dictionary: Service: ExecStartPost: '' ExecStopPost: '' ```
issue

Webarchitects | Forum | Status | SSH Fingerprints