community.general.sensu_subscription – Manage Sensu subscriptions¶
This plugin is part of the community.general collection (version 3.6.0).
To install it use:
ansible-galaxy collection install community.general.
To use it in a playbook, specify:
# 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
Common return values are documented here, the following are the fields unique to this module:
list / elements=string
the reasons why the module changed or did not change something
["channel subscription was absent and state is `present'"]