Why did the Ansible Automation platform setup script fail with ERROR! [DEPRECATED]: ansible.builtin.include has been removed?
Issue
-
When running setup script on Ansible Automation platform it fails with below error.
PLAY [Define role discovered variables, usable throughout the playbook] ******** Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' Read vars_file 'vars/collection_global_vars.yml' 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. [error] Oops! An error occurred while running setup.
Environment
- Ansible Automation Platform 2.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.