mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-01 04:14:42 +00:00
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:
@@ -101,6 +101,19 @@ if NUM_VERSION >= 40600:
|
|||||||
if six.PY3:
|
if six.PY3:
|
||||||
unicode = str
|
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:
|
else:
|
||||||
# IPA version < 4.6
|
# IPA version < 4.6
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user