# Ansible on iPhone

**URL:** <https://forum.ansible.com/t/ansible-on-iphone/17552>\
**Category:** Ansible Project\
**Created:** [February 18, 2015, 3:16pm UTC](https://forum.ansible.com/t/ansible-on-iphone/17552 "2015-02-18T15:16:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artem\_Grebenkin](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Artem\_Grebenkin](https://forum.ansible.com/u/Artem_Grebenkin)\
**Post date:** [February 18, 2015, 3:16pm UTC](https://forum.ansible.com/t/ansible-on-iphone/17552/1 "2015-02-18T15:16:03Z")

</div>

Hi folks,

an iPhone has apt-get, so I’d like to configure them with Ansible using condition when: ansible\_os\_family == ‘iOs’ or something like that.

How can I extend Ansible so it sets ‘iOs’ value in ansible\_os\_family?

/usr/bin/sw\_vers -productName invoked on iPhone returns iPhone Os which differs from Mac Os X on Mac. I couldn’t find nothing about ansible\_os\_family in the official repo.

Greetz Artem

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 18, 2015, 5:28pm UTC](https://forum.ansible.com/t/ansible-on-iphone/17552/2 "2015-02-18T17:28:59Z")

</div>

This is more a ansible-devel question. In any case, you need to look  
at the setup module, which is in charge of gathering facts and  
already has MacOSX support.

---

<div class="post-metadata">

**Author:** ![Artem\_Grebenkin](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@Artem\_Grebenkin](https://forum.ansible.com/u/Artem_Grebenkin)\
**Post date:** [February 19, 2015, 7:59am UTC](https://forum.ansible.com/t/ansible-on-iphone/17552/3 "2015-02-19T07:59:15Z")

</div>

Thank you Brian for reply. I have been so far. I have found the related facts but I don’t know if it possible to override the implementation. So I’ll try in the devel group.
