Skip to content

Commit

Permalink
Rename timesync_ntp_provider_default to timesync_ntp_provider_os_default
Browse files Browse the repository at this point in the history
for consistency with network, see linux-system-roles/network#71
  • Loading branch information
pcahyna committed Jul 25, 2018
1 parent 05acb58 commit 5ce02e2
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 5ce02e2

Please sign in to comment.