| A very simple role to pause and start Uptimerobot monitors.
Uptimerobot is a free monitoring tool with an integrated status-page and lots of monitor capabilities. Pausing and Starting the monitors during ansible runs is a key feature of maintenance windows to avoid unwanted alerts.
Install from Ansible Galaxy
ansible-galaxy install while_true_do.uptimerobot
Install from GitHhub
git clone https://github.com/while-true-do/ansible-role-uptimerobot.git while_true_do.uptimerobot
Valid Uptimerobot Account and API Key.
Used Modules:
None.
You have to set the following variables to use this role.
# defaults/main.yml
wtd_utr_api_key: ''
wtd_utr_monitor_id: []
wtd_utr_monitor_state: ''
# You can set this to false, if you are using pre_task/post_task in your play.
wtd_utr_flush_handlers: 'true'
All tests are located in test directory.
Basic testing:
bash ./tests/test-spelling.sh
bash ./tests/test-ansible.sh
Thank you so much for considering to contribute. Every contribution helps us. We are really happy, when somebody is joining the hard work. Please have a look at the links first.
This work is licensed under a BSD License.
Blog: blog.while-true-do.org
Mail: hello@while-true-do.org