Skip to content

Commit

Permalink
Merge pull request #15 from mlichvar/default_provider
Browse files Browse the repository at this point in the history
 Add empty timesync_ntp_provider to defaults
  • Loading branch information
tyll committed May 25, 2019
2 parents f5179b0 + 3a84020 commit 00a646c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Expand Up @@ -4,3 +4,4 @@ timesync_ptp_domains: []
timesync_dhcp_ntp_servers: false
timesync_step_threshold: -1.0
timesync_min_sources: 1
timesync_ntp_provider: ''
4 changes: 2 additions & 2 deletions tasks/main.yml
Expand Up @@ -17,12 +17,12 @@

- name: Determine current NTP provider
timesync_provider:
when: timesync_mode != 2 and (timesync_ntp_provider is not defined or timesync_ntp_provider == '')
when: timesync_mode != 2 and timesync_ntp_provider == ''

- name: Select NTP provider
set_fact:
timesync_ntp_provider: "{{ timesync_ntp_provider_os_default if timesync_ntp_provider_current == '' else timesync_ntp_provider_current }}"
when: timesync_mode != 2 and (timesync_ntp_provider is not defined or timesync_ntp_provider == '')
when: timesync_mode != 2 and timesync_ntp_provider == ''

- name: Install chrony
package:
Expand Down

0 comments on commit 00a646c

Please sign in to comment.