Extract the run next playbook.

This commit is contained in:
2025-05-16 11:28:36 +00:00
parent 53b7dac530
commit 808e9ec055

19
run-next.yaml Normal file
View File

@@ -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 }}"