# Configure iPhone with Ansible

**URL:** <https://forum.ansible.com/t/configure-iphone-with-ansible/17564>\
**Category:** Ansible Developer\
**Created:** [February 19, 2015, 7:56am UTC](https://forum.ansible.com/t/configure-iphone-with-ansible/17564 "2015-02-19T07:56:10Z")\
**Posts on this page:** 1\
**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 19, 2015, 7:56am UTC](https://forum.ansible.com/t/configure-iphone-with-ansible/17564/1 "2015-02-19T07:56:10Z")

</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
