# cannot find ansible.cfg and /etc/ansible on Mac Mojave

**URL:** <https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718>\
**Category:** Ansible Project\
**Created:** [October 4, 2018, 9:24am UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718 "2018-10-04T09:24:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronnie10](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Ronnie10](https://forum.ansible.com/u/Ronnie10)\
**Post date:** [October 4, 2018, 9:24am UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718/1 "2018-10-04T09:24:17Z")

</div>

Hi there,

I installed ansible 2.6.5 using pip, however I could find ansible.cfg and /etc/ansible folder in my macbook, I tried to create my own /etc/ansible but it doesn’t work. Any other way to get that fixed?

Thank you,  
Ronnie

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 4, 2018, 10:40am UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718/2 "2018-10-04T10:40:21Z")

</div>

pip doesn't create /etc/ansible or the file /etc/ansible/ansible.cfg so you need to create them both manually.

---

<div class="post-metadata">

**Author:** ![bill\_paxton](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@bill\_paxton](https://forum.ansible.com/u/bill_paxton)\
**Post date:** [October 9, 2018, 7:02pm UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718/3 "2018-10-09T19:02:10Z")

</div>

Here’s how I solved this with a task:  
[https://pastebin.com/6t4xrc2W](https://pastebin.com/6t4xrc2W)

---

<div class="post-metadata">

**Author:** ![Ronnie10](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@Ronnie10](https://forum.ansible.com/u/Ronnie10)\
**Post date:** [October 10, 2018, 1:09am UTC](https://forum.ansible.com/t/cannot-find-ansible-cfg-and-etc-ansible-on-mac-mojave/28718/4 "2018-10-10T01:09:40Z")

</div>

Thanks! I have solved it by creating it manually.
