mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-16 06:22:12 +00:00
Replace deprecated include with import_tasks and include_tasks
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
This commit is contained in:
@@ -23,8 +23,7 @@
|
||||
when: not ipareplica_no_package_install | bool and ipareplica_setup_adtrust | bool
|
||||
|
||||
- name: Install - Include Python2/3 import test
|
||||
include: "{{role_path}}/tasks/python_2_3_test.yml"
|
||||
static: yes
|
||||
inport_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
|
||||
|
||||
- name: Install - Set default principal if no keytab is given
|
||||
set_fact:
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
- "vars/default.yml"
|
||||
|
||||
- name: Install IPA replica
|
||||
include: tasks/install.yml
|
||||
include_tasks: tasks/install.yml
|
||||
when: state|default('present') == 'present'
|
||||
|
||||
- name: Uninstall IPA replica
|
||||
include: tasks/uninstall.yml
|
||||
include_tasks: tasks/uninstall.yml
|
||||
when: state|default('present') == 'absent'
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
# tasks to uninstall IPA replica
|
||||
|
||||
#- name: Uninstall - Include Python2/3 import test
|
||||
# include: "{{role_path}}/tasks/python_2_3_test.yml"
|
||||
# static: yes
|
||||
# import_tasks: "{{role_path}}/tasks/python_2_3_test.yml"
|
||||
|
||||
- name: Uninstall - Uninstall IPA replica
|
||||
command: >
|
||||
|
||||
Reference in New Issue
Block a user