ipad-wall-displays-ansible/ipads.yml

29 lines
1.1 KiB
YAML
Raw Normal View History

2021-11-17 01:37:55 -05:00
- 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: Add Karen's Repo
raw: echo "deb http://cydia.akemi.ai/ ./" > /etc/apt/sources.list.d/akemi.list
- name: Add rpetrich Repo
raw: echo "deb https://rpetri.ch/repo/ ./" > /etc/apt/sources.list.d/rpetrich.list
- name: Update apt sources
raw: apt-get update
- name: Install packages
raw: apt-get install -y --force-yes net.angelxwind.mikoto libactivator com.rpetrich.monocle
- name: Copy webclip
local_action: command scp -r ./reservations_display.webclip {{ inventory_hostname }}:Library/WebClips
become: false
- name: Respring
raw: killall SpringBoard