ipad-wall-displays-ansible/ipads.yml

36 lines
1.3 KiB
YAML

- name: ipad setup
hosts: ipads
gather_facts: no
become: true
tasks:
- name: Add Karen's Repo
copy:
content: |
deb http://cydia.akemi.ai/ ./
dest: /etc/apt/sources.list.d/akemi.list
# Can't use apt module because `python-apt` package doesn't exist
- name: Update apt sources
command: apt-get update
- name: Install packages
command: apt-get install -y --force-yes net.angelxwind.mikoto libactivator be.rud0lf77.maximization com.ericasadun.utilities veency
- name: Copy webclip
become: false
template:
src: reservations_display.webclip/Info.plist
dest: /var/mobile/Library/WebClips/reservations_display.webclip/
- name: Copy webclip icon
become: false
copy:
src: reservations_display.webclip/icon.png
dest: /var/mobile/Library/WebClips/reservations_display.webclip/
- name: Create/update Veency plist
become: false
shell: |
VEENCY_PLIST=/var/mobile/Library/Preferences/com.saurik.Veency.plist
[ -f $VEENCY_PLIST ] || plutil -create $VEENCY_PLIST
plutil -binary $VEENCY_PLIST
plutil -key Password -string {{ lookup('passwordstore', 'servers/cms/vnc@ipads') | d(omit) }} $VEENCY_PLIST
plutil -key ShowCursor -false $VEENCY_PLIST
- name: Respring
command: killall SpringBoard