# install Ansible on Mac 2.5.0

**URL:** <https://forum.ansible.com/t/install-ansible-on-mac-2-5-0/27287>\
**Category:** Ansible Project\
**Created:** [April 16, 2018, 5:33am UTC](https://forum.ansible.com/t/install-ansible-on-mac-2-5-0/27287 "2018-04-16T05:33:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jose\_Julian\_Orjuela](https://avatars.discourse-cdn.com/v4/letter/j/cc9497/32.png) [@Jose\_Julian\_Orjuela](https://forum.ansible.com/u/Jose_Julian_Orjuela)\
**Post date:** [April 16, 2018, 5:33am UTC](https://forum.ansible.com/t/install-ansible-on-mac-2-5-0/27287/1 "2018-04-16T05:33:54Z")

</div>

Hello guys,

I need you help, I try the install Ansible on my Mac, but not is possible, I have this is error:

Please, Can someone tell me, how can I install Ansible correctly on my MAC?

macOS Hig Sierra version 10.13.4,

thanks

[DEPRECATION WARNING]: ANSIBLE\_HOSTS option, The variable is misleading as it can be a list of hosts and/or paths to inventory sources , use ANSIBLE\_INVENTORY instead.

This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation\_warnings=False in ansible.cfg.

[WARNING]: \* Failed to parse /etc/ansible/hosts with yaml plugin: YAML inventory has invalid structure, it should be a dictionary, got: \<class

‘ansible.parsing.yaml.objects.AnsibleSequence’\>

[WARNING]: \* Failed to parse /etc/ansible/hosts with ini plugin: need more than 2 values to unpack

[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source

[WARNING]: No inventory was parsed, only implicit localhost is available

[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ‘all’

[WARNING]: Could not match supplied host pattern, ignoring: server1

---

<div class="post-metadata">

**Author:** ![Biswadip\_Dutta](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@Biswadip\_Dutta](https://forum.ansible.com/u/Biswadip_Dutta)\
**Post date:** [April 16, 2018, 8:32am UTC](https://forum.ansible.com/t/install-ansible-on-mac-2-5-0/27287/2 "2018-04-16T08:32:15Z")

</div>

Hi,

You have Ansible installed properly I believe. Your issue is caused by having group name with spaces in the inventory. See [This](https://github.com/ansible/ansible/issues/13917).

---

<div class="post-metadata">

**Author:** ![oscar](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@oscar](https://forum.ansible.com/u/oscar)\
**Post date:** [April 16, 2018, 8:51am UTC](https://forum.ansible.com/t/install-ansible-on-mac-2-5-0/27287/3 "2018-04-16T08:51:42Z")

</div>

Hi,

As Biswadip said, your Ansible installation is ok, and the problem is your inventory file having wrong syntax. Also note that you are using variable names maked as obsolete about 2 years ago. I suggest you to follow the official documentation, where you have a [quickstart video](http://docs.ansible.com/ansible/latest/user_guide/quickstart.html) and a [getting started guide](http://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html), as them have useful information as for example inventory syntax or updated variable names.

Regards,

Oscar
