community / community.general / 2.5.9 / module / sensu_subscription Manage Sensu subscriptions Authors: Anders Ingemann (@andsens)community.general.sensu_subscription (2.5.9) — module
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
Manage which I(sensu channels) a machine should subscribe to
# Subscribe to the nginx channel - name: Subscribe to nginx checks community.general.sensu_subscription: name=nginx
# Unsubscribe from the common checks channel - name: Unsubscribe from common checks community.general.sensu_subscription: name=common state=absent
name: description: - The name of the channel required: true type: str path: default: /etc/sensu/conf.d/subscriptions.json description: - Path to the subscriptions json file required: false type: str state: choices: - present - absent default: present description: - Whether the machine should subscribe or unsubscribe from the channel required: false type: str backup: default: false description: - Create a backup file (if yes), including the timestamp information so you - can get the original file back if you somehow clobbered it incorrectly. required: false type: bool
reasons: description: the reasons why the module changed or did not change something returned: success sample: - channel subscription was absent and state is `present' type: list