Extract the run next playbook.
This commit is contained in:
19
run-next.yaml
Normal file
19
run-next.yaml
Normal 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 }}"
|
||||
Reference in New Issue
Block a user