geerlingguy / geerlingguy/ansible-for-devops

Ansible is being run in a world writable directory

Open
#421 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
9.9k
Forks
3.8k
PR merge metrics
No merged PRs in 30d

Description

My apologies, there's a lot to unpack below

I'm having an issue getting ansible and vagrant to play well with each other on WSL

If I run ansible from outside of the home directory (~) I get
"Ansible is being run in a world writable directory"

But if I run vagrant in my home directory I get an error saying that it can't be there.
(That was last weekend so I don't remember)

I've solved the "world writeable" issue by installing Ansible 2.6.0
pip install ansible==2.6.0

I tried setting wsl to have chod'able permissions by editing the /etc/wsl.conf file.
Unfortunately that effectively locked me out of my system, wsl couldn't see any of the files.

Elsewhere I've mentioned that I had to downgrade the wsl version on my ubuntu distro to wsl 1.
That seems to be working.

I believe I'm up and running, but this feels like an ugly hack.

If anyone has a guide for setting up ansible on wsl 2, I will be happy to live fire it for you.

My current progress is somewhere between chapter 3 or 4 (had to go back to 3 because of the "world writeable" issue.

I'll update this as I go forward.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.