angstwad/docker.ubuntu

include: deprecated

Closed this issue ยท 5 comments

[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.

include: kernel_check_and_update.yml

#- include: integration-tests.yml
(albeit commented out)

The depreciated feature isn't scheduled to be removed until 2.8. If one uses the replacement commands suggested in the documentation, it breaks compatibility with anything earlier than v2.4. Current version in Debian apt package manager for instance is v2.2. Maybe that's a reason to wait until 2.8 is actually on the horizon. Based on their current release cycles, that could be a year out. Hopefully by then the package managers will have caught up on current releases. Just a thought.

sivel commented

include has been un-deprecated: ansible/ansible#35843

I just upgraded the role and am seeing quite a lot of these warnings:

[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|version_compare`
use `result is version_compare`. This feature will be removed in version 2.9. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.

ansible 2.6.2

@kachkaev your deprecations are unrelated to this issue. they're fixed in #217.

Looks like include is deprecated again ๐Ÿ˜

[DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be
removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

My ansible --version is 2.12.1. Relevant PR: ansible/ansible#71262