'Ansible is being run in a world writable directory (/vagrant), ignoring it as an ansible.cfg source

trying to provision vagrant vm (ubuntu/trusty64) with ansible_local provisioner
from cygwin

[WARNING] Ansible is being run in a world writable directory (/vagrant), ignoring it as an ansible.cfg source. For more information see https://docs.ansible.com/ansible/devel/reference_appendices/config.html#cfg-in-world-writable-dir

can anyone help me with this
please suggest how to configure the ansible.cfg file in cygwin
what should be the content of this and where should this be ?



Solution 1:[1]

Did R & D and got help from the github vagrant community members.
https://github.com/hashicorp/vagrant/issues/11707

previously before running ansible_local ,i had tried ansible provisioner.
so created new workspace folder and fired up vagrant up.

this time it worked from CYGWIN.

Solution 2:[2]

You can solve this with mount_options in the Vagrantfile:

srv.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: false, mount_options: ["dmode=775"]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhishek D K
Solution 2 bbaassssiiee