22 lines
923 B
YAML
22 lines
923 B
YAML
---
|
|
|
|
- name: Prepare the {{ ansible_facts['distribution'] }} guest operating system
|
|
include_tasks: "{{ ansible_facts['distribution'] | lower }}.yml"
|
|
when: "ansible_facts['distribution'] == 'Debian'"
|
|
|
|
- name: Prepare the {{ ansible_facts['distribution'] }} guest operating system
|
|
include_tasks: "{{ ansible_facts['distribution'] | lower }}.yml"
|
|
when: "ansible_facts['distribution'] == 'Ubuntu'"
|
|
|
|
- name: Prepare the {{ ansible_facts['distribution'] }} guest operating system
|
|
include_tasks: redhat.yml
|
|
when: "ansible_facts['distribution'] in ['RedHat', 'CentOS', 'Rocky', 'AlmaLinux', 'OracleLinux']"
|
|
|
|
- name: Configuration tasks for the {{ ansible_facts['distribution'] }} guest operating system
|
|
include_tasks: suse.yml
|
|
when: "ansible_facts['distribution'] in ['openSUSE Leap', 'Suse']"
|
|
|
|
- name: "{{ configure_task_name }}"
|
|
ansible.builtin.include_tasks: windows.yml
|
|
when: ansible_os_family == "Windows"
|