Ansible on iPhone

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

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.

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.