Ansible on iPhone

71 views
Skip to first unread message

Artem Grebenkin

unread,
Feb 18, 2015, 10:16:03 AM2/18/15
to ansible...@googlegroups.com
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

Brian Coca

unread,
Feb 18, 2015, 12:29:02 PM2/18/15
to ansible...@googlegroups.com
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.


--
Brian Coca

Artem Grebenkin

unread,
Feb 19, 2015, 2:59:15 AM2/19/15
to ansible...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages