Closed dderemiah closed 11 months ago
hi @dderemiah
Thank you for this PR. Looking through the task, the first step in the block is to install the correct time_sync_tool, so i am keen to see how this is getting to error. So when it gets to this part of the block it will be installed. This change would not be necessary in this instance as the package_facts would also have not been updated by this point they only run once the prereqs are met.
many thanks
uk-bolly
If the deb package systemd-timesyncd is not installed and you have selected for example "chrony" it will attempt to mask a service that doesn't exist and will fail. I added the check for the systemd-timesyncd to account for this condition which exists on some machines I am applying CIS controls to.
Overall Review of Changes: Make sure timesyncd is installed before manipulating the service
Issue Fixes: Fixes error when timesyncd is not installed
Enhancements: n/a
How has this been tested?: tested locally