redhat-cop / ocp4-helpernode

This playbook helps set up an "all-in-one" node, that has all the infrastructure/services in order to install OpenShift 4.
342 stars 303 forks source link

Change include to include_tasks to avoid breakage from ansible-core 2.16.2 #314

Closed prb112 closed 8 months ago

prb112 commented 8 months ago

With the latest Centos-Stream-8, ansible-core the version 2.16.2-1.el8 is installed. The ocp4-helpernode fails with this error:

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.

@Chandan-Abhyankar found a fix, and it's nominal change.

Testing locally, I found this be fine. I'm raising the PR, however credit goes to Chandan. Chandan also tested this in the automation.

prb112 commented 8 months ago

Thank you