|
|
@ -24,7 +24,7 @@ module: pushbullet
|
|
|
|
short_description: Sends notifications to Pushbullet
|
|
|
|
short_description: Sends notifications to Pushbullet
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- This module sends push notifications via Pushbullet to channels or devices.
|
|
|
|
- This module sends push notifications via Pushbullet to channels or devices.
|
|
|
|
version_added: "1.8"
|
|
|
|
version_added: "2.0"
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
api_key:
|
|
|
|
api_key:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -164,7 +164,7 @@ def main():
|
|
|
|
success, result = target.push_note(title, body)
|
|
|
|
success, result = target.push_note(title, body)
|
|
|
|
|
|
|
|
|
|
|
|
if success:
|
|
|
|
if success:
|
|
|
|
module.exit_json(changed=True, msg="OK")
|
|
|
|
module.exit_json(changed=False, msg="OK")
|
|
|
|
|
|
|
|
|
|
|
|
# General failure
|
|
|
|
# General failure
|
|
|
|
module.fail_json(msg="Some error ocurred, Pushbullet response: %s" % (result))
|
|
|
|
module.fail_json(msg="Some error ocurred, Pushbullet response: %s" % (result))
|
|
|
|