From 808e9ec055fbb46660126b23be6e2dbbbd72baff Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Fri, 16 May 2025 11:28:36 +0000 Subject: [PATCH] Extract the run next playbook. --- run-next.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 run-next.yaml diff --git a/run-next.yaml b/run-next.yaml new file mode 100644 index 0000000..65f4b9d --- /dev/null +++ b/run-next.yaml @@ -0,0 +1,19 @@ +--- +# This playbook starts the next semaphore integration +- name: Run next playbook + hosts: all + gather_facts: false + + tasks: + - name: Include token + include_vars: vars/semaphore-token.yaml + + - name: Run next playbook + ansible.builtin.uri: + url: http://ansible.lan/api/integrations/ei0dtntvuz54ot3s + method: GET + status_code: 204 + headers: + Content-Type: application/json + Authorization: Bearer "{{ token }}" + run: "{{ to_do }}" \ No newline at end of file