summaryrefslogtreecommitdiff
path: root/elevate/ele-emcplayer.yml
diff options
context:
space:
mode:
Diffstat (limited to 'elevate/ele-emcplayer.yml')
-rw-r--r--elevate/ele-emcplayer.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/elevate/ele-emcplayer.yml b/elevate/ele-emcplayer.yml
new file mode 100644
index 00000000..0b9d7568
--- /dev/null
+++ b/elevate/ele-emcplayer.yml
@@ -0,0 +1,32 @@
+---
+- name: Basic Setup
+ hosts: "{{ install_hostname }}"
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd/base
+ - role: core/zsh
+ - role: core/ntp
+ - role: core/cpu-microcode
+
+- name: Payload Setup
+ hosts: "{{ install_hostname }}"
+ roles:
+ - role: ws/base
+ - role: core/users
+ post_tasks:
+ - name: generate play script
+ copy:
+ content: |
+ #!/bin/bash
+ exec mpv -fs --loop=inf --af-add="channelmap=0|1:stereo" rtmp://{{ network_zones.guest.prefix | ansible.utils.ipaddr(network_zones.guest.offsets['ele-helene']) | ansible.utils.ipaddr('address') }}/emc/full
+ dest: /usr/local/bin/emc-play.sh
+ mode: 0755
+
+## TODO:
+# * add user "player" (no admin rights)
+# * set background for user player
+# * configure power management:
+# * activate "Presentaion Mode"
+# * change power button to "shutdown"
+# * add emc-play.sh to autostart