Allow defining a list of tools in webclip url via inventory variables
This commit is contained in:
parent
695a7ba8c4
commit
74e985c823
6
hosts
6
hosts
@ -1,7 +1,13 @@
|
|||||||
|
# -*- mode: yaml; -*-
|
||||||
|
|
||||||
ipads:
|
ipads:
|
||||||
hosts:
|
hosts:
|
||||||
iPad2:
|
iPad2:
|
||||||
iPad3:
|
iPad3:
|
||||||
|
reservation_tools:
|
||||||
|
- 3d printer, Lulzbot Taz 6
|
||||||
|
- 3d printer, Lulzbot Mini
|
||||||
|
- Laser Cutter, GLS Hybrid
|
||||||
vars:
|
vars:
|
||||||
ansible_ssh_user: mobile
|
ansible_ssh_user: mobile
|
||||||
ansible_ssh_pass: alpine
|
ansible_ssh_pass: alpine
|
||||||
|
@ -18,9 +18,14 @@
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
command: apt-get install -y --force-yes net.angelxwind.mikoto libactivator com.rpetrich.monocle
|
command: apt-get install -y --force-yes net.angelxwind.mikoto libactivator com.rpetrich.monocle
|
||||||
- name: Copy webclip
|
- 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
|
become: false
|
||||||
copy:
|
copy:
|
||||||
src: reservations_display.webclip
|
src: reservations_display.webclip/icon.png
|
||||||
dest: /var/mobile/Library/WebClips/
|
dest: /var/mobile/Library/WebClips/reservations_display.webclip/
|
||||||
- name: Respring
|
- name: Respring
|
||||||
command: killall SpringBoard
|
command: killall SpringBoard
|
||||||
|
@ -17,6 +17,6 @@
|
|||||||
<key>UIStatusBarStyle</key>
|
<key>UIStatusBarStyle</key>
|
||||||
<string>UIStatusBarStyleGray</string>
|
<string>UIStatusBarStyleGray</string>
|
||||||
<key>URL</key>
|
<key>URL</key>
|
||||||
<string>http://10.12.42.247:8080/</string>
|
<string>https://reservations.claremontmakerspace.org/{% if reservation_tools is defined %}?tool={{ reservation_tools | map('urlencode') | join(';') }}{% endif %}</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
Loading…
Reference in New Issue
Block a user