Hey,
is this still working?
I tried with Ansible:
But doesn´t work as expected. Any ideas?
Instance-URL is set like this:
url: "https://opnsense.local:8443/api/wol/wol/set"
is this still working?
Code Select
#Will trigger a manual/undefined wake:
POST /wol/wol/set {wake: {interface: "opt22", mac: "b4:2e:99:30:da:dd"}}I tried with Ansible:
Code Select
- name: Send Wake-on-LAN
ansible.builtin.uri:
url: "{{ opnsense_instances[opnsense_instance].url }}"
method: POST
user: "{{ opnsense_instances[opnsense_instance].api_key }}"
password: "{{ opnsense_instances[opnsense_instance].api_secret }}"
force_basic_auth: true
body_format: json
body:
wake:
interface: "{{ opnsense_interface }}"
mac: "{{ mac }}"
validate_certs: false
when: not host_was_online
delegate_to: localhostBut doesn´t work as expected. Any ideas?
Instance-URL is set like this:
url: "https://opnsense.local:8443/api/wol/wol/set"
"