Files
personal_ansible_pub/playbooks/send_completion_alert.yml
2023-07-10 10:41:17 +03:00

15 lines
436 B
YAML

- name: notify healthchecks.io that the job ran
uri:
url: https://hc-ping.com/{{ healthcheck_uuid }}
changed_when: False
when: healthcheck_uuid is defined
- name: send completion notification via telegram
tags: always
telegram:
token: "{{ telegram_token }}"
chat_id: "{{ telegram_chat_id }}"
msg_format: markdown
msg: "✔️ Ansible provision finished on *{{ ansible_hostname }}*"
changed_when: False