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

- name: Payload Setup
  hosts: ch-jump
  roles:
  - role: apt-repo/spreadspace
  - role: nginx/base
  - role: monitoring/prometheus/exporter
  - role: core/sshd/jump
  - role: network/nftables/base
  post_tasks:
  - name: install etherwake
    apt:
      name: etherwake
      state: present

  - name: install wakeup scripts
    loop:
    - name: equinoxws
      interface: mgmt0
      mac: b4:2e:99:9f:bb:7c
    loop_control:
      label: "{{ item.name }}"
    copy:
      dest: "/usr/local/bin/wakeup-{{ item.name }}"
      content: |
        #!/bin/sh
        exec etherwake -i {{ item.interface }} {{ item.mac }}
      mode: 0755