mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 18:55:53 +00:00
As the old way to include tasks is deprecated, replace static include statements with import_tasks and dynamic ones with include_tasks. Increaded the required ansible version to 2.5.0 to make sure that include_tasks and import_tasks is working as expected. Fixes issue #38
19 lines
585 B
YAML
19 lines
585 B
YAML
---
|
|
# tasks file for ipaserver
|
|
|
|
- name: Import variables specific to distribution
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
|
|
- "vars/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
|
- "vars/{{ ansible_distribution }}.yml"
|
|
- "vars/default.yml"
|
|
|
|
- name: Install IPA server
|
|
include_tasks: tasks/install.yml
|
|
when: state|default('present') == 'present'
|
|
|
|
- name: Uninstall IPA server
|
|
include_tasks: tasks/uninstall.yml
|
|
when: state|default('present') == 'absent'
|