Use include_tasks since include is deprecated.#19
Use include_tasks since include is deprecated.#19tyler-8 wants to merge 1 commit intoavanov:masterfrom
Conversation
|
Hi @tyler-8, I'm happy to merge it if you fix the currently failing CI test (needs altering |
|
Looks like I can't fix those errors as |
|
@tyler-8 yes, so could you edit the |
|
Sorry I'm not very familiar with TravisCI (still new at this stuff). Is there a way to specify another test entirely, since 2.0 still wouldn't be high enough for |
|
@tyler-8 what's the least required version for this syntax? |
|
Per the Ansible documentation, it was introduced in Ansible 2.4.0 (released September 2017) along with a depreciation message (seen in my OP). |
|
@tyler-8 it's been a while since the original report, but if that change is still of interest to you, could you rebase your changes on the current master branch? |
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.