Skip to content
Snippets Groups Projects
Commit 40905510 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ansible_ipa_replica: Add import of ntpinstance again

This is needed in ipareplica_setup_ds and has been removed before as part
of commit f33d234d.
parent 0b5b5756
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,19 @@ if NUM_VERSION >= 40600:
if six.PY3:
unicode = str
try:
from ipaclient.install import timeconf
time_service = "chronyd"
ntpinstance = None
except ImportError:
try:
from ipaclient.install import ntpconf as timeconf
except ImportError:
from ipaclient import ntpconf as timeconf
from ipaserver.install import ntpinstance
time_service = "ntpd"
else:
# IPA version < 4.6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment