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
This commit is contained in:
Alex Schultz 2021-02-20 16:15:22 -07:00
parent 24f495b820
commit 28193e49e6
1 changed files with 2 additions and 2 deletions

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