ansible_ipa_replica: Add import of ntpinstance again

This is needed in ipareplica_setup_ds and has been removed before as part
of commit f33d234d5a.
This commit is contained in:
Thomas Woerner
2019-04-05 18:29:49 +02:00
parent 0b5b5756c7
commit 40905510ca

View File

@@ -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