Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
694 B

---
- include_vars: "{{ item }}"
with_first_found:
- vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml
- vars/{{ ansible_distribution }}.yml
- vars/{{ ansible_os_family }}.yml
- vars/defaults.yml
- include_tasks: utils.yml
- include_tasks: hostname.yml
- include_tasks: tz.yml
- include_tasks: tuned.yml
when:
- ansible_virtualization_role == 'host' or ansible_virtualization_type != 'lxc'
- ansible_os_family == 'RedHat'
- include_tasks: mail.yml
- include_tasks: system.yml
- include_tasks: hardware.yml
when: ansible_virtualization_role == 'host'
- include_tasks: guest.yml
when:
- ansible_virtualization_role == 'guest'
...