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.
I get an Ansible lint error... not sure if its a user bug, ansible bug or project bug :)
Here is the play
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: