ansible-role-dotfiles/tasks/main.yml

13 lines
480 B
YAML
Raw Normal View History

---
- name: Show (ansible_distribution)-(ansible_facts.distribution_major_version)
debug:
msg: "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- name: Run tasks based on the OS type, or a default if not found.
include_tasks: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- "default.yml"