ansible-ops-management/tasks/variable_loader_common.yml
2023-04-21 18:28:46 -07:00

25 lines
649 B
YAML

---
- name: Standard System Configuration Variables
block:
- name: Loading Variables from OS Common
ansible.builtin.include_vars: "{{ item }}"
with_items:
- "{{ ansible_distribution }}.yml"
- name: Create overrides if we're an IPA Replica
ansible.builtin.include_vars: "{{ item }}"
with_first_found:
- "ipaserver.yml"
when: "'ipaserver' in group_names"
- name: Check if system is EFI
ansible.builtin.stat:
path: "/sys/firmware/efi"
register: efi_installed
always:
- name: Notify of load
ansible.builtin.debug:
msg: "Variables are now loaded"
...