Skip to content

Instantly share code, notes, and snippets.

@mkanoor
Created February 7, 2024 01:10
Show Gist options
  • Select an option

  • Save mkanoor/8f9755b5714daec763de26e30bf7a1cc to your computer and use it in GitHub Desktop.

Select an option

Save mkanoor/8f9755b5714daec763de26e30bf7a1cc to your computer and use it in GitHub Desktop.
---
- name: Test run job templates
hosts: all
sources:
- ansible.eda.webhook:
port: 4444
host: 0.0.0.0
filters:
- ansible.eda.insert_hosts_to_meta:
host_path: "payload.meta.host"
rules:
- name: "Run job template"
condition: event.payload.i == 0
actions:
- run_job_template:
name: Demo Job Template
organization: Default
job_args:
extra_vars:
hello: Fred
retries: 1
delay: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment