Run shutdown after nas backup.
This commit is contained in:
13
nas.yaml
13
nas.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user