module lineinfile not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem.

Hi Ansible Experts,

I am facing the error in the subject line, when i tried to access a file and add a line to end of the file using lineinfile module.
For some reason it unables to find the module or something, tried re-installing ansible different ways , without any luck.
All the post on internet ditn seem to help.
Any suggestions is greatly appreciated.

Regards,
Krishna

it is either a misconfiguration or a bad install.