ansible.builtin.monit (v2.9.27) — module

Manage the state of a program monitored via Monit

| "added in version" 1.2 of ansible.builtin"

Authors: Darryl Stoflet (@dstoflet)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manage the state of a program monitored via I(Monit)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Manage the state of program "httpd" to be in "started" state.
- monit:
    name: httpd
    state: started

Inputs

    
name:
    description:
    - The name of the I(monit) program/process to manage
    required: true

state:
    choices:
    - present
    - started
    - stopped
    - restarted
    - monitored
    - unmonitored
    - reloaded
    description:
    - The state of service
    required: true

timeout:
    default: 300
    description:
    - If there are pending actions for the service monitored by monit, then Ansible will
      check for up to this many seconds to verify the requested action has been performed.
      Ansible will sleep for five seconds between each check.
    version_added: '2.1'
    version_added_collection: ansible.builtin