With ansible-playbook v2.0.0.2 which comes by default under Ubuntu 16.04, I found that it misses few of modules which is required and hence user might encounter the below issue:
root@ubuntu:~/test/redfish-ansible-module/playbooks# ansible-playbook get_system_logs.yml
ERROR! no action detected in task
The error appears to have been in '/root/test/redfish-ansible-module/playbooks/get_system_logs.yml': line 12, column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Define output file
^ here
To fix this, one need to update ansible-playbook to 2.6.x version as shown below:
Thank you for your suggestion @ajeetraina. Please note that development has moved to https://github.com/ansible/ansible, starting with ansible v2.7, so this issue will not be there.
With ansible-playbook v2.0.0.2 which comes by default under Ubuntu 16.04, I found that it misses few of modules which is required and hence user might encounter the below issue:
To fix this, one need to update ansible-playbook to 2.6.x version as shown below:
I suggest you to capture minimal requirement for ansible-playbook version for its smooth functionality.