ansible-fprobe/tasks/main.yml
2021-05-17 04:35:09 +02:00

21 lines
675 B
YAML

---
#- 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
# include_vars: "RedHat-{{ ansible_distribution_version.split('.')[0] }}.yml"
include_vars: "RedHat-7.yml"
when: ansible_os_family == "RedHat"
#- include: debian.yml
# when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
#- include: redhat.yml
# when: ansible_os_family == "RedHat"
- include: fprobe.yml