Skip to content

Commit

Permalink
Merge pull request #17 from pcahyna/os_default
Browse files Browse the repository at this point in the history
Rename timesync_ntp_provider_default to timesync_ntp_provider_os_default
  • Loading branch information
pcahyna authored Jul 31, 2018
2 parents 8c0cd01 + 5ce02e2 commit 0dc7627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

- name: Select NTP provider
set_fact:
timesync_ntp_provider: "{{ timesync_ntp_provider_default if timesync_ntp_provider_current == '' else timesync_ntp_provider_current }}"
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 == '')

- name: Install chrony
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
timesync_ntp_provider_default: "{{ 'ntp' if ansible_distribution in ['RedHat', 'CentOS'] and ansible_distribution_version|version_compare('7.0', '<') else 'chrony' }}"
timesync_ntp_provider_os_default: "{{ 'ntp' if ansible_distribution in ['RedHat', 'CentOS'] and ansible_distribution_version|version_compare('7.0', '<') else 'chrony' }}"

0 comments on commit 0dc7627

Please sign in to comment.