Files
ansible-freeipa/roles/ipaclient/tasks/main.yml
Thomas Woerner 4697a0326d ipaclient/tasks/main.yml: Fix undefined ipaclient_packages error with include_role
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.
2018-01-31 23:46:36 +01:00

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'