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

**URL:** <https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [June 15, 2020, 12:28pm UTC](https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185 "2020-06-15T12:28:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_Karigar](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Abhishek\_Karigar](https://forum.ansible.com/u/Abhishek_Karigar)\
**Post date:** [June 15, 2020, 12:28pm UTC](https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185/1 "2020-06-15T12:28:17Z")

</div>

##### SUMMARY

trying to provision the vagrant guest using ansible\_local.  
with ansible provision i was able to do it successfully.

##### ISSUE TYPE- Bug Report

##### COMPONENT NAME##### ANSIBLE VERSION

```auto
ansible 2.9.9

```

##### CONFIGURATION

```auto

```

##### OS / ENVIRONMENT

windows 10 / cygwin /ansible 2.9.x version

##### STEPS TO REPRODUCE

vagrant up

```auto
---
- hosts: all
  become: true
  tasks:
    - name: Install NTP
      apt: package=ntp,ntpdate state=present update_cache=yes
      tags: ntp
  
    - name: Make sure NTP is started up
      service: name=ntp state=started enabled=yes
      tags: ntp

    - name: install JDK 11
      apt:
        name: openjdk-7-jdk
        state: present

    - name: install apache2
      apt: name=apache2 update_cache=yes state=latest
    
    - name: enabled mod_rewrite
      apache2_module: name=rewrite state=present
      notify:
        - restart apache2
    
  handlers:
    - name: restart apache2
      service: name=apache2 state=restarted
    

```

##### EXPECTED RESULTS##### ACTUAL RESULTS

$ vagrant up --provision  
Bringing machine ‘default’ up with ‘virtualbox’ provider…  
==\> default: Checking if box ‘ubuntu/trusty64’ version ‘20190514.0.0’ is up to date…  
==\> default: Running provisioner: ansible\_local…  
default: Running ansible-playbook…  
[WARNING] Ansible is being run in a world writable directory (/vagrant), ignoring it as an ansible.cfg source. For more information see https://

> **[Ansible Configuration Settings — Ansible Community Documentation](https://docs.ansible.com/projects/ansible/devel/reference_appendices/config.html)**

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Gathering Facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [default]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: ssh: connect to host 127.0.0.1 port 2222: Con  
nection refused”, “unreachable”: true}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0

Ansible failed to complete successfully. Any error output should be  
visible above. Please fix these errors and try again.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 15, 2020, 2:22pm UTC](https://forum.ansible.com/t/ansible-is-being-run-in-a-world-writable-directory-vagrant-ignoring-it-as-an-ansible-cfg-source/33185/2 "2020-06-15T14:22:59Z")

</div>

The warning message contains a URL. Visit that and follow the  
recommendations there.  
It might be that the combination of tools that you use (vagrant +  
cygwin + ansible) is problematic. In that case, try cutting out those  
tools one by one until it works.
