Skip to content

Commit

Permalink
Add empty timesync_ntp_provider to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mlichvar committed Jul 24, 2018
1 parent f616cae commit 14701a6
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_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: name=chrony state=present
Expand Down

0 comments on commit 14701a6

Please sign in to comment.