wakeonlan: Add integration tests and improvements (#26254)

This PR includes:
- Checkmode improvements
- Integration tests
- A fix for python3
- PEP8 fixes

This backports improvements from the win_wakeonlan module.
This commit is contained in:
Dag Wieers 2017-07-07 11:52:02 +02:00 committed by John R Barker
commit f8982dcbd0
4 changed files with 35 additions and 25 deletions

View file

@ -0,0 +1,9 @@
- name: Send a magic Wake-on-LAN packet to 00:00:5E:00:53:66
wakeonlan:
mac: 00:00:5E:00:53:66
broadcast: 192.0.2.255
- name: Send a magic Wake-on-LAN packet on port 9 to 00-00-5E-00-53-66
wakeonlan:
mac: 00-00-5E-00-53-66
port: 9