Eliminate use of ansible include

Removes obsoleted ansible syntax and uses current one "include_tasks"
is the recommended syntax for performing a dynamic (non-static) include.

Change-Id: If17df8c8fa909960743f4a1e6d3bed845209cce7
This commit is contained in:
Sorin Sbarnea 2018-12-31 16:44:06 +00:00
parent 2db72af41d
commit 74557137f8
2 changed files with 3 additions and 5 deletions

View File

@ -19,7 +19,5 @@
- name: Deferred setup
setup:
- include: ara-ops.yml
static: no
- include: test-ops.yml
static: no
- include_tasks: ara-ops.yml
- include_tasks: test-ops.yml

View File

@ -62,7 +62,7 @@ def ansible_run(complete=True, failed=False, gather_facts=True,
gather_facts: yes
tasks:
- name: Fake task
include: some/path/main.yml
include_tasks: some/path/main.yml
- name: Record something
ara_record: