ERROR! [DEPRECATED]: ansible.builtin.include has been removed.
Use include_tasks or import_tasks instead. This feature was removed from ansible-core in a release after 2023-05-16. Please update your playbooks.
Use include_tasks or import_tasks instead. This feature was removed from ansible-core in a release after 2023-05-16. Please update your playbooks.
changed due date to July 26, 2024
added Version_change label
assigned to @desscan
The Role should be changed, so that the Role just use one of: include_role module – Load and execute a role include_tasks module – Dynamically include a task list include_vars module – Load variables from files, dynamically within a task
EDIT:
https://github.com/ansible/ansible/blob/v2.16.0/changelogs/CHANGELOG-v2.16.rst Removed include which has been deprecated in Ansible 2.12. Use include_tasks or import_tasks instead.
We could verify Ansible version in the main task but it doesn't make sense and it doesn't make the playbook better.