Add/remove sites to uptimerobot service.
Ansible's official module currently only supports start
and pause
.
Change your group_vars/all/uptimerobot.yml
:
uptimerobot_targets:
- { name: "Google", url: "https://gogole.com", state: "present"}
- { name: "Slashdot", url: "https://slashdot.org", state: "present"}
uptimerobot_alert_entries:
- { alert_name: "Slack", alert_type: "11", status: "2", value: "https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXX", state: "present" }
See uptimerobot API documentation for more details
Important: ansible-vault is highly recommended to store your uptimerobot_api_key.
$ ansible-vault encrypt group_vars/all/uptimerobot_api_key.yml
$ ansible-playbook main.yml --vault-pass your_vault_pass_file
- Add alert support for monitors
- Alert management support
- Public pages support
- Maintenance windows support
- Ansible check mode support