- Update the iPad (v5.1.1?) to the latest iOS and make a backup using iTunes
- Install the sshpass program on your laptop. Ansible will need this to connect over ssh using a password.
- Jailbreak the iPad using redsn0w -- you now have Cydia
- Use Cydia to install "MobileTerminal", "OpenSSH", "Python", and "Setup Tools"
- Follow the "MobileTerminal" instructions in Cydia for changing the default passwords
- Locate your iPad's IP address by looking in Settings.app > Wi-Fi and clicking your connected networks detail ">" arrow
- SSH into your iPad and make sure you add IP address to list of known hosts
- Place IP address into an Ansible hosts file
- Run the playbook in this gist using the given command
Last active
December 28, 2015 22:49
-
-
Save cookrn/7574372 to your computer and use it in GitHub Desktop.
Setting up an iPad 1 to be an Ansible Node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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