Skip to content

Instantly share code, notes, and snippets.

@cookrn
Last active December 28, 2015 22:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cookrn/7574372 to your computer and use it in GitHub Desktop.
Save cookrn/7574372 to your computer and use it in GitHub Desktop.
Setting up an iPad 1 to be an Ansible Node

Setting up an iPad 1 to be an Ansible Node

  1. Update the iPad (v5.1.1?) to the latest iOS and make a backup using iTunes
  2. Install the sshpass program on your laptop. Ansible will need this to connect over ssh using a password.
  3. Jailbreak the iPad using redsn0w -- you now have Cydia
  4. Use Cydia to install "MobileTerminal", "OpenSSH", "Python", and "Setup Tools"
  5. Follow the "MobileTerminal" instructions in Cydia for changing the default passwords
  6. Locate your iPad's IP address by looking in Settings.app > Wi-Fi and clicking your connected networks detail ">" arrow
  7. SSH into your iPad and make sure you add IP address to list of known hosts
  8. Place IP address into an Ansible hosts file
  9. Run the playbook in this gist using the given command
# test ssh command
# say yes to add IP address to list of known hosts
ssh mobile@<iPad-IP-address>
# playbook command
ansible-playbook <playbook-file-name> -i <hosts-file-name> -k
---
- name: ipad setup
hosts: all
gather_facts: no
user: root
tasks:
- name: install simplejson
easy_install: name=simplejson
- name: test
pause: seconds=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment