Ansible's paths crossed? or need to install python 3 in right folder?

Was trying to fix a problem in my project with Vagrant. I got this error:

`System info:
Ansible 2.7.1; Vagrant 2.2.14; Darwin
Trellis 1.0.3: April 30th, 2019

I suspect you are not suing teh ansible supplied 'setup.py', try
executing with -vvvv and look for 'Using module file ...' in the
output.
If what im' guessing is correct you have a 'library' directory
adjacent to play that is proving the 'right names' but incorrect code.

Hi,
I’m not sure what you mean.
So what I can gather from your message is what I did:

  1. type in ansible -vvvv
  2. I don’t see anything like “Using module file…”
  3. What I’m seeing are Module_Path: prepend colon-separated path(s) to module library
    (default=[‘/Users/kiki/.ansible/plugins/modules’,
    ‘/usr/share/ansible/plugins/modules’])
  4. I also see at the end
    Some modules do not make sense in Ad-Hoc (include, meta, etc)
    ERROR! Missing target hosts

Do I copy over the python3.9 folder over to /usr/lib from /usr/local/lib?

-Kristina

Hi,
Additionally, everything was fine when I start up a project with “vagrant up” but when I checked with “vagrant provision”, I got this error mentioned in my first email. I was just wondering if “vagrant provision” does play a role in getting this error?

-Kristina

Something is injecting a 'setup.py' into the modules path that is not
the same setup.py as ansible uses for fact gathering. I would start
with new simple install and add layers until you find what causes it.