Browse Source

Use ansible_facts

ansible_distribution and ansible_os_family rely on the facts being
injected as vars. This change switches our vars file lookup to use
ansible_facts instead.

Change-Id: Ia6636bf0223f7e51b6b50950a5c8c1413b4a54b0
changes/08/776808/3 1.0.3
Alex Schultz 2 months ago
parent
commit
28193e49e6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tasks/main.yml

+ 2
- 2
tasks/main.yml View File

@ -2,8 +2,8 @@
- name: Load distro-specific variables
include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- "{{ ansible_facts['distribution'] }}.yml"
- "{{ ansible_facts['os_family'] }}.yml"
- default.yml
- name: Install chronyd


Loading…
Cancel
Save