summaryrefslogtreecommitdiff
path: root/chaos-at-home/ch-mc.yml
blob: 8ded2b5ad9671317ca50a4242899a6c256e6de02 (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
---
- name: Basic Setup
  hosts: ch-mc
  roles:
  - role: apt-repo/base
  - role: core/base
  - role: core/sshd/base
  - role: core/zsh
  - role: core/cpu-microcode

- name: Payload Setup
  hosts: ch-mc
  roles:
  - role: network/wakeonlan
  # - role: apt-repo/backports
  # - role: kodi/standalone
  - role: apt-repo/kodi
  - role: ws/base
  - role: ws/users
  post_tasks:
  - name: install nfs client packages
    apt:
      name: nfs-common
      state: present

  - name: mount fileserver volumes
    mount:
      src: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus']) | ansible.utils.ipaddr('address') }}:/"
      path: /srv/files
      fstype: nfs4
      opts: nodev,x-systemd.automount,nofail,ro
      state: mounted