--- # tasks file for ipaserver - name: Import variables specific to distribution ansible.builtin.include_vars: "{{ item }}" with_first_found: - "vars/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yml" - "vars/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yml" - "vars/{{ ansible_facts['distribution'] }}.yml" # os_family is used as a fallback for distros which are not currently # supported, but are based on a supported distro family. For example, # Oracle, Rocky, Alma and Alibaba linux, which are all "RedHat" based. - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yml" - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yml" - "vars/{{ ansible_facts['os_family'] }}.yml" # If neither distro nor family is supported, try a default configuration. - "vars/default.yml" - name: Install IPA server ansible.builtin.include_tasks: install.yml when: state|default('present') == 'present' - name: Uninstall IPA server ansible.builtin.include_tasks: uninstall.yml when: state|default('present') == 'absent'