21 lines
819 B
YAML
21 lines
819 B
YAML
- name: ipad setup
|
|
hosts: ipads
|
|
gather_facts: no
|
|
become: true
|
|
tasks:
|
|
- name: Allow Pubkey Authentication for OpenSSH
|
|
raw: >-
|
|
sed -i /etc/ssh/sshd_config
|
|
-e 's|^#\?PubkeyAuthentication\W.*|PubkeyAuthentication yes|'
|
|
-e 's|^#\?AuthorizedKeysFile\W.*|AuthorizedKeysFile %h/.ssh/authorized_keys|'
|
|
-e 's|^#\?PermitRootLogin\W.*|PermitRootLogin no|'
|
|
- name: Fix /var/mobile permissions
|
|
raw: chmod 750 /var/mobile
|
|
- name: restart sshd
|
|
raw: launchctl kickstart -k system/com.openssh.sshd
|
|
- name: copy python 2.7 deb
|
|
local_action: command scp -r ./python_2.7.6-3_iphoneos-arm.deb "{{ inventory_hostname }}:"
|
|
become: false
|
|
- name: install python 2.7
|
|
raw: dpkg -i python_2.7.6-3_iphoneos-arm.deb && rm python_2.7.6-3_iphoneos-arm.deb
|