31 lines
640 B
YAML
31 lines
640 B
YAML
- name: "Webhook Test 1: Long running job"
|
|
hosts: all
|
|
gather_facts: false
|
|
become: false
|
|
|
|
|
|
vars:
|
|
pause_time : 1
|
|
num_retries : 5
|
|
fail_count : 30
|
|
poll_interval : 10
|
|
|
|
webhook : "https://webhooks.thezengarden.net/webhook-callback-poc"
|
|
webhook_key : "fYnWhoF42NFsN2p5tiB3Wd65HgB1oc-Qo2jXS6TTmZov"
|
|
|
|
check_commands:
|
|
- uname -a
|
|
- uptime
|
|
- ping -c 1 127.0.0.1
|
|
|
|
|
|
tasks:
|
|
- name: Include long_running_tasks.yml
|
|
ansible.builtin.include_tasks: tasks/long_running_tasks.yml
|
|
|
|
|
|
handlers:
|
|
- name: Bob
|
|
ansible.builtin.debug:
|
|
msg: "We've reached equilibrium"
|