community.general.uptimerobot (8.5.0) — module

Pause and start Uptime Robot monitoring

Authors: Nate Kingsley (@nate-kingsley)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

This module will let you start and pause Uptime Robot Monitoring


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Pause the monitor with an ID of 12345
  community.general.uptimerobot:
    monitorid: 12345
    apikey: 12345-1234512345
    state: paused
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Start the monitor with an ID of 12345
  community.general.uptimerobot:
    monitorid: 12345
    apikey: 12345-1234512345
    state: started

Inputs

    
state:
    choices:
    - started
    - paused
    description:
    - Define whether or not the monitor should be running or paused.
    required: true
    type: str

apikey:
    description:
    - Uptime Robot API key.
    required: true
    type: str

monitorid:
    description:
    - ID of the monitor to check.
    required: true
    type: str