community / community.general / 0.1.1 / module / sensu_subscription Manage Sensu subscriptions Authors: Anders Ingemann (@andsens) preview | supported by communitycommunity.general.sensu_subscription (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage which I(sensu channels) a machine should subscribe to
# Subscribe to the nginx channel - name: subscribe to nginx checks sensu_subscription: name=nginx
# Unsubscribe from the common checks channel - name: unsubscribe from common checks sensu_subscription: name=common state=absent
name: description: - The name of the channel required: true path: default: /etc/sensu/conf.d/subscriptions.json description: - Path to the subscriptions json file required: false state: choices: - present - absent default: present description: - Whether the machine should subscribe or unsubscribe from the channel required: false 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