1.2.1029
-------- - 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:
@ -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."
|
||||
|
Reference in New Issue
Block a user