Hi,

We are using ansible 2.7 and in my yml file I ahave the below:



- include_tasks: roles/common/tasks/os_base.yml
- include_tasks: roles/common/tasks/splunk_base.yml
- include_tasks:
    file: roles/common/tasks/splunk_role.yml
    apply:
      splunkRole:
         - splunk-clustermaster

but getting an error as 

fatal: [localhost]: FAILED! => {"reason": "'splunkRole' is not a valid 
attribute for a Block\n\nThe error appears to have been in 
'/home/ec2-user/splunk-infra/ansible/roles/clusterdeployer/tasks/main.yml': 
line 10, column 7, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n    apply:\n      
splunkRole:\n      ^ here\n"}

Earlier we had ansible 2.6.4 and the below used to work but the ansible 
gets upgraded because of the way the setup is done and hence the issue.

- include_tasks: roles/common/tasks/splunk_role.yml 
splunkRole=splunk-clustermaster

can someone help please urgently?

Thank you

Regards
Karthik

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5864632c-37ae-457b-bdd9-2a754ddfd25e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to