Run shutdown after nas backup.

This commit is contained in:
2025-05-16 11:06:18 +00:00
parent e74974010f
commit 66ad4847d2

View File

@@ -13,6 +13,9 @@
gather_facts: true
tasks:
- name: Include variables
include_vars: vars/semaphore-token.yaml
- name: Wakeup odroid
community.general.wakeonlan:
mac: '00:1E:06:45:4C:45'
@@ -52,3 +55,13 @@
path: /media/odroid
state: unmounted
become: true
- name: Run next playbook
ansible.builtin.uri:
url: http://ansible.lan/api/integrations/ei0dtntvuz54ot3s
method: GET
status: 204
headers:
Content-Type: application/json
Authorization: Bearer "{{ token }}"
run: shutdown