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

configure_dmc.yml failing with error #197

Open
BSonPosh opened this issue Jul 12, 2023 · 1 comment
Open

configure_dmc.yml failing with error #197

BSonPosh opened this issue Jul 12, 2023 · 1 comment

Comments

@BSonPosh
Copy link

I get an Ansible lint error... not sure if its a user bug, ansible bug or project bug :)

Here is the play

---
   - hosts: 
       - manager
     roles:
       - splunk
     vars:
       - deployment_task: configure_dmc.yml

TASK [splunk : Include the specified task file] *********************************************************************************
ERROR! this task 'include_task' has extra params, which is only allowed in the following modules: ansible.builtin.include_role, include_tasks, include_vars, ansible.legacy.raw, ansible.legacy.include_vars, raw, ansible.legacy.set_fact, ansible.builtin.set_fact, ansible.builtin.raw, ansible.legacy.add_host, meta, win_shell, ansible.builtin.import_tasks, ansible.builtin.win_shell, ansible.legacy.script, command, ansible.legacy.command, ansible.builtin.meta, ansible.legacy.import_role, include_role, ansible.legacy.include_role, group_by, ansible.windows.win_shell, ansible.builtin.win_command, ansible.windows.win_command, include, ansible.legacy.group_by, add_host, ansible.builtin.import_role, ansible.builtin.shell, ansible.legacy.include, ansible.builtin.add_host, ansible.legacy.win_command, ansible.legacy.shell, ansible.legacy.include_tasks, win_command, import_role, ansible.builtin.include, import_tasks, ansible.legacy.import_tasks, ansible.builtin.command, set_fact, ansible.builtin.group_by, ansible.builtin.include_tasks, ansible.builtin.script, shell, ansible.legacy.meta, script, ansible.builtin.include_vars, ansible.legacy.win_shell

The error appears to be in '/home/bshell/source/ansible-role-for-splunk/roles/splunk/tasks/configure_dmc.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


  • name: Check splunk
    ^ here
@arcsector
Copy link
Contributor

I'll include this in the PR I have open for the DMC task, but you can solve this by making include_task to include_tasks, which will remove the error.

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

2 participants