diff --git a/nas.yaml b/nas.yaml index e532f0c..fb51d21 100644 --- a/nas.yaml +++ b/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