ansible/roles/vm_guest/tasks/main.yaml

18 lines
578 B
YAML
Raw Normal View History

2019-10-05 21:41:25 +00:00
---
- name: gather OS specific variables
2022-08-31 03:19:06 +00:00
ansible.builtin.include_vars: "{{ item }}"
2019-10-05 21:41:25 +00:00
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- name: gather virtualization specific variables
2022-08-31 03:19:06 +00:00
ansible.builtin.include_vars: "{{ item }}"
2019-10-05 21:41:25 +00:00
with_first_found:
"{{ ansible_virtualization_type }}.yaml"
- name: run virtualization specific tasks
2022-08-31 03:19:06 +00:00
ansible.builtin.include_tasks: "{{ item }}"
2019-10-05 21:41:25 +00:00
with_first_found:
"{{ ansible_virtualization_type }}.yaml"