summaryrefslogtreecommitdiff
path: root/roles/network/wakeonlan/tasks/main.yml
blob: 5270ba4e08bff2ee3d4dde359c75d1eafa7ccdcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: install systemd service unit
  template:
    src: wakeonlan.service.j2
    dest: /etc/systemd/system/wakeonlan.service
  notify: restart wakeonlan

- name: make sure wakeonlan service unit is enabled and started
  systemd:
    name: wakeonlan.service
    daemon_reload: yes
    state: started
    enabled: yes