2016-10-30 20:40:48 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
#- fail: msg="This role is only compatible with Ubuntu"
|
|
|
|
# when: ansible_distribution != 'Ubuntu'
|
|
|
|
|
|
|
|
- name: Include version-specific variables for Ubuntu.
|
|
|
|
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
|
|
|
when: ansible_distribution == 'Ubuntu'
|
|
|
|
- name: Include version-specific variables for RedHat
|
2021-05-17 04:35:09 +02:00
|
|
|
# include_vars: "RedHat-{{ ansible_distribution_version.split('.')[0] }}.yml"
|
|
|
|
include_vars: "RedHat-7.yml"
|
2018-12-21 08:00:53 +01:00
|
|
|
when: ansible_os_family == "RedHat"
|
2016-10-30 20:40:48 +01:00
|
|
|
|
|
|
|
#- include: debian.yml
|
|
|
|
# when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
|
|
|
|
|
|
#- include: redhat.yml
|
2018-12-21 08:00:53 +01:00
|
|
|
# when: ansible_os_family == "RedHat"
|
2016-10-30 20:40:48 +01:00
|
|
|
|
|
|
|
- include: fprobe.yml
|