diff --git a/playbooks/templates/heartbeat.yml.jinja2 b/playbooks/templates/heartbeat.yml.jinja2 index 9f0e937ca0e649c1f2196147bcd7c9adf55aeea5..54294c16c1f09f167881e947c07bc7be9350e153 100644 --- a/playbooks/templates/heartbeat.yml.jinja2 +++ b/playbooks/templates/heartbeat.yml.jinja2 @@ -10,6 +10,14 @@ hosts: - {{ hostvars[host]['static_ipv4'] }} closed: {{ (host in groups.mailserver|default([])) | ternary('False', 'True') }} +- type: port19999 + schedule: '*/5 * * * * * *' + tags: + - '{{ lookup("env","ANSIBLE_COMPANY") }}' + name: 'Blocked port 19999 on {{ host }}' + hosts: + - {{ hostvars[host]['static_ipv4'] }} + closed: 'True' {% if hostvars[host]['icmp_monitoring']|default(true) %} - type: icmp schedule: '*/5 * * * * * *'