This commit is contained in:
Mohammed Naser 2019-04-11 16:36:21 -04:00
parent eef0060ef9
commit 9cc609c36f

View File

@ -10,4 +10,11 @@
- "{{ ansible_os_family | lower }}"
- name: Install packages
import_tasks: "install/{{ ansible_distribution }}.yaml"
include_tasks: "install/{{ item }}.yaml"
with_first_found:
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}"
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}"
- "{{ ansible_distribution | lower }}"
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_version.split('.')[0] }}"
- "{{ ansible_os_family | lower }}"