mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 13:32:10 +00:00
ipaserver: Support sync_time changes of 4.8.0
sync_time is not using options anymore, but has two new arguments. These are ntp_servers and ntp_pool. The options argument is not used anymore. This requires to use inspect on sync_time to be able to detect if the old or the new function is available. The call for get_time_source has been added, but is documented out as the call is only useful in interactive mode. ipaserver_test now returns ntp_servers and ntp_pool, which are then used for ipaserver_setup_ntp.
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
# pkinit_name
|
||||
### client ###
|
||||
# mkhomedir
|
||||
ntp_servers: "{{ ipaclient_ntp_servers | default(omit) }}"
|
||||
ntp_pool: "{{ ipaclient_ntp_pool | default(omit) }}"
|
||||
no_ntp: "{{ ipaclient_no_ntp }}"
|
||||
# ssh_trust_dns
|
||||
# no_ssh
|
||||
@@ -166,6 +168,8 @@
|
||||
|
||||
- name: Install - Setup NTP
|
||||
ipaserver_setup_ntp:
|
||||
ntp_servers: "{{ result_ipaserver_test.ntp_servers | default(omit) }}"
|
||||
ntp_pool: "{{ result_ipaserver_test.ntp_pool | default(omit) }}"
|
||||
when: not ipaclient_no_ntp | bool and (ipaserver_external_cert_files
|
||||
is undefined or ipaserver_external_cert_files|length < 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user