# Issues installing Ansible on Mac OS

**URL:** https://discourse.roots.io/t/issues-installing-ansible-on-mac-os/18175
**Category:** trellis
**Created:** 2020-05-05T03:51:05Z
**Posts:** 4

## Post 1 by @labedzde — 2020-05-05T03:51:05Z

I’m in the process of deploying a Trellis/Bedrock/Sage site from my local machine to Kinsta, but it looks like somewhere along the way, Ansible did not get installed correctly.

While following [this tutorial](https://roots.io/guides/deploying-to-kinsta-with-trellis/), I noticed that I was getting ansible playbook not found errors in my terminal.

So then I tried to check the Ansible version on my machine and it wasn’t found. I then went back to [this tutorial](https://roots.io/docs/getting-started/macos/#working-with-trellis) to try to get it installed properly.

I even tried the NFS method as well. Did not help. Somewhere along the way, I took a screenshot of this error I saw. Would that have something to do with it?

 ![Screenshot 2020-05-04 22.12.44](https://discourse.roots.io/uploads/default/original/2X/e/ec20c11530f73bf9f08fa966ef3136a1fcc460a6.png)

I’m running macOSMojave. Is there a step I missed somehow?

---

## Post 2 by @slowrush — 2020-05-05T08:24:09Z

I feel your pain Python x Ansible x Trellis versions can be a nightmare to get right!

These are the steps I’ve been using to get them all working smoothly together on macOS Catalina

```
# Install Python 3.7 with pyenv using homebrew

brew install pyenv
pyenv install 3.7.6
pyenv global 3.7.6
pyenv rehash
pip install --upgrade ansible==2.7.15
```

As far as I know, the latest versions of Trellis need ansible version `2.8`, so change that last line to `pip install --upgrade ansible==2.8.11` if you’re working on a fairly fresh clone of Trellis.

One of the guys on our team started using [Ansible Version Manager (AVM)](https://github.com/ahelal/avm) which seems to be working pretty well - hope it helps!

---

## Post 3 by @labedzde — 2020-05-05T14:54:15Z

Thanks for the tips! I ended up installing Ansible using Homebrew, which I remembered I already had installed. I did end up installing Ansible version 2.9.7, and I saw that only 2.8 was tested with Trellis. So I wonder if I’ll need to downgrade at some point.

Now I’m dealing with a different issue, haha. I ran the vagrant provision command and got this error message:

 ![Screenshot 2020-05-05 09.52.24](https://discourse.roots.io/uploads/default/original/2X/a/a5efcf1af46bf629416acb12ea5ce1ad0a99fefe.png)

Going to try the fix from [this thread](https://discourse.roots.io/t/vagrant-provision-failed-to-update-apt-cache/17350) and see if that helps.

---

## Post 4 by @system — 2020-06-16T03:51:05Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
