splunk / ansible-role-for-splunk

Splunk@Splunk's Ansible role for installing Splunk, upgrading Splunk, and installing apps/addons on Splunk deployments (VM/bare metal)
Apache License 2.0
147 stars 103 forks source link

configure_dmc.yml failing with error #197

Open BSonPosh opened 1 year ago

BSonPosh commented 1 year ago

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:


arcsector commented 1 year ago

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.