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

ansible.builtin.import_tasks problem #75

Closed
huckley opened this issue Dec 9, 2022 · 1 comment · Fixed by #77
Closed

ansible.builtin.import_tasks problem #75

huckley opened this issue Dec 9, 2022 · 1 comment · Fixed by #77
Assignees

Comments

@huckley
Copy link

huckley commented Dec 9, 2022

I write a role which depend on this role and I get:
ERROR! this task 'ansible.builtin.import_tasks' has extra params, which is only allowed in the following modules: win_shell, include_tasks, include_role, group_by, import_tasks, add_host, raw, import_role, script, set_fact, include_vars, shell, meta, include, win_command, command

The error appears to be in '/home/fhackenberger/Dokumente/ansible/rexx.apt/tests/roles/hifis.unattended_upgrades/tasks/main.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

I Use ansible 2.9.6
also ansible.builtin.import_task is only available in ansible >= 2.4, but your meta says:
min_ansible_version: "1.4"

@Normo
Copy link
Member

Normo commented Dec 14, 2022

@huckley Thank you so much for pointing that out!

This role will support all Ansible versions that are officially maintained . So at least version 2.12 should be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants