summaryrefslogtreecommitdiff
path: root/roles/core/ntp/tasks/main.yml
blob: d8c619a9a9545212b2e86547fee49405be5605f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
---
- name: load os/distrubtion/version specific tasks
  when: ntp_variant is defined
  vars:
    params:
      files:
      - "{{ ansible_distribution_release }}_{{ ntp_variant }}.yml"
      - "{{ ansible_distribution }}_{{ ntp_variant }}.yml"
      - "{{ ansible_os_family }}_{{ ntp_variant }}.yml"
      - "error.yml"
  loop: "{{ q('first_found', params) }}"
  loop_control:
    loop_var: tasks_file
  include_tasks: "{{ tasks_file }}"