ansible/roles/vm_guest/tasks/main.yaml

18 lines
578 B
YAML

---
- name: gather OS specific variables
ansible.builtin.include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- name: gather virtualization specific variables
ansible.builtin.include_vars: "{{ item }}"
with_first_found:
"{{ ansible_virtualization_type }}.yaml"
- name: run virtualization specific tasks
ansible.builtin.include_tasks: "{{ item }}"
with_first_found:
"{{ ansible_virtualization_type }}.yaml"