summaryrefslogtreecommitdiff
path: root/dan/ele-hpws-mini2.yml
blob: 83341a64a3081bec7c1989625c99c549016d3870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
- name: Basic Setup
  hosts: ele-hpws-mini2
  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: ele-hpws-mini2
  roles:
  - role: apt-repo/spreadspace
  - role: ws/base
  - role: core/users
  post_tasks:
  - name: install chromium start script
    copy:
      content: |
        #!/bin/sh

        SITE=$1
        if [ -z "$SITE"]; then
          SITE="https://remote.elev8.at/stream-ui/player.html#control={{ hostvars['ele-jitsi'].jitsi_meet_streamui.default_control_room }}&displayName={{ host_name }}"
        fi
        export DISPLAY=:0.0
        exec chromium-browser "$SITE" --disable-infobars --use-fake-ui-for-media-stream --kiosk --temp-profile --start-maximized --enabled --enable-logging --autoplay-policy=no-user-gesture-required
      dest: /usr/local/bin/jitsi-display.sh
      mode: 0755