timesync icon indicating copy to clipboard operation
timesync copied to clipboard

error in task Get chrony version

Open iLeonelPerea opened this issue 6 years ago • 4 comments

I am using Ubuntu and in the task Get chrony version get the following error:

package chrony is not installed

iLeonelPerea avatar Jul 12 '18 04:07 iLeonelPerea

Ubuntu is the controller host, or the managed host?

pcahyna avatar Jul 20 '18 13:07 pcahyna

The problem is in the rpm command used to get the package version. It would be weird if it worked on Ubuntu :).

If there is a module that can get the version of packages on different systems, we could use that. However, there are other differences between Fedora/RHEL and Debian/Ubuntu, e.g. different path of chrony.conf, so more work would be needed to support the other distros..

mlichvar avatar Jul 24 '18 12:07 mlichvar

We have some changes in progress that will eliminate the calls to rpm and use a distribution-agnostic method. As said above, more work would be needed to support Debian/Ubuntu, though.

pcahyna avatar Sep 30 '19 15:09 pcahyna

contributed change to support Ubuntu: #62

pcahyna avatar Mar 09 '20 18:03 pcahyna