mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 22:03:18 +00:00
The relative import of the distribution specific vars files requires to use
is not working. {{ role_path }} needs to be used to force the load of the
proper files.
19 lines
637 B
YAML
19 lines
637 B
YAML
---
|
|
# tasks file for ipaclient
|
|
|
|
- name: Import variables specific to distribution
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
|
- "{{ role_path }}/vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
|
- "{{ role_path }}/vars/{{ ansible_distribution }}.yml"
|
|
- "{{ role_path }}/vars/default.yml"
|
|
|
|
- name: Install IPA client
|
|
include: tasks/install.yml
|
|
when: state|default('present') == 'present'
|
|
|
|
- name: Uninstall IPA client
|
|
include: tasks/uninstall.yml
|
|
when: state|default('present') == 'absent'
|