--------
- Added new method to call the webhook via handler
- Added inventory_hostname to webhook calls to see who is doing what
- Updated messages for better readability
- Added comment markers for clarity
This commit is contained in:
2023-06-21 22:28:38 -04:00
parent bc812e3bc9
commit e726576548
4 changed files with 70 additions and 29 deletions

View File

@ -26,5 +26,15 @@
handlers:
- name: Bob
ansible.builtin.debug:
msg: "We've reached equilibrium"
ansible.builtin.uri:
url : "{{ webhook }}"
headers:
Authorization : "Token {{ webhook_key }}"
Content-type : 'application/json'
method : POST
status_code : 200
validate_certs : false
return_content : false
body_format : json
body : |
"{{ inventory_hostname }}": "We've reached equilibrium."