diff options
Diffstat (limited to 'chaos-at-home/ch-jump.yml')
-rw-r--r-- | chaos-at-home/ch-jump.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chaos-at-home/ch-jump.yml b/chaos-at-home/ch-jump.yml index fbfb6631..a8e11ce5 100644 --- a/chaos-at-home/ch-jump.yml +++ b/chaos-at-home/ch-jump.yml @@ -8,3 +8,22 @@ - role: core/zsh - role: core/ntp - role: core/sshd/jump + 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 |