summaryrefslogtreecommitdiff
path: root/elevate/ele-telesto.yml
blob: f8f7f55ab460122765420636166f64168b3cd65f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
- name: Basic Setup
  hosts: ele-telesto
  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-telesto
  roles:
  - role: core/users
  - role: apt-repo/spreadspace
  - role: nginx/base
  - role: monitoring/prometheus/exporter
  - role: streaming/blackmagic/desktopvideo
  post_tasks:
    ## this is needed for local icecast relay
  # - name: install interface config for guest vlan
  #   copy:
  #     content: |
  #       auto {{ ansible_default_ipv4.interface }}.{{ network_zones.guest.vlan }}
  #       iface {{ ansible_default_ipv4.interface }}.{{ network_zones.guest.vlan }} inet static
  #         address {{ network_zones.guest.prefix | ansible.utils.ipaddr(network_zones.guest.offsets[inventory_hostname]) }}
  #     dest: "/etc/network/interfaces.d/{{ ansible_default_ipv4.interface }}.{{ network_zones.guest.vlan }}"

  - name: install lm-sensors and i7z
    apt:
      name:
      - lm-sensors
      - s-tui

  - name: load modules for lm-sensors
    vars:
      sensors_modules:
      - nct6775
    block:
    - name: load special modules for lm-sensors
      loop: "{{ sensors_modules }}"
      modprobe:
        name: "{{ item }}"
        state: present

    - name: make sure sensor modules are loaded on reboot
      copy:
        content: |
          # Ansible managed

          {% for module in sensors_modules %}
          {{ module }}
          {% endfor %}
        dest: /etc/modules-load.d/sensors.conf