Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in main.yml for include tasks #42

Open
justb4 opened this issue Oct 3, 2024 · 1 comment
Open

Error in main.yml for include tasks #42

justb4 opened this issue Oct 3, 2024 · 1 comment

Comments

@justb4
Copy link

justb4 commented Oct 3, 2024

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

In https://github.com/sansible/users_and_groups/blob/develop/tasks/main.yml need to replace include with include_tasks.
include_tasks was introduced in Ansible 2.4. It worked when I did that replacement locally.

@justb4
Copy link
Author

justb4 commented Oct 3, 2024

Ha I now see PR #41 should solve this!

At same time older Ansible versions should work as well. Maybe just have one tasks file without include(_tasks)?

justb4 added a commit to justb4/ansible-users-and-groups that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant