summaryrefslogtreecommitdiff
path: root/dan/ele-companion-raspi.yml
blob: e16c4d708e3b3cbf9f6600b2488a6eb5492bd23c (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
32
33
34
35
36
---
- name: Basic Setup
  hosts: ele-companion-raspi
  roles:
  - role: apt-repo/base
  - role: core/base
  - role: core/sshd/base
  - role: core/zsh
  - role: core/ntp

- name: Payload Setup
  hosts: ele-companion-raspi
  roles:
  - role: apt-repo/spreadspace
  - role: kubernetes/base
  - role: kubernetes/standalone/base
  - role: streaming/companion
  - role: streaming/ontime
  post_tasks:
  - name: install vlan package
    apt:
      name: vlan
      state: present

    ## TODO: this should be moved to a generac interfaces role...
  - name: add vlan config for mixer vlan
    blockinfile:
      path: /etc/network/interfaces
      block: |

        auto {{ network.primary.name }}.{{ network_zones.mixer.vlan }}
        iface {{ network.primary.name }}.{{ network_zones.mixer.vlan }} inet static
          up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
          up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
          address {{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}
          netmask {{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets[inventory_hostname]) | ansible.utils.ipaddr('netmask') }}