mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
[PR #9364/6b7ea344 backport][stable-10] [prox ... pyth]*: normalize docs (#9400)
[prox ... pyth]*: normalize docs (#9364)
* [prox ... pyth]*: normalize docs
* Apply suggestions from code review
Co-authored-by: IamLunchbox <56757745+IamLunchbox@users.noreply.github.com>
* Update plugins/modules/pushbullet.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/modules/pushbullet.py
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: IamLunchbox <56757745+IamLunchbox@users.noreply.github.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 6b7ea3443d
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
4f9e7bd793
commit
7a44dbfe45
23 changed files with 633 additions and 729 deletions
|
@ -9,16 +9,13 @@ from __future__ import absolute_import, division, print_function
|
|||
__metaclass__ = type
|
||||
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
DOCUMENTATION = r"""
|
||||
module: pushover
|
||||
short_description: Send notifications via U(https://pushover.net)
|
||||
short_description: Send notifications through U(https://pushover.net)
|
||||
description:
|
||||
- Send notifications via pushover, to subscriber list of devices, and email
|
||||
addresses. Requires pushover app on devices.
|
||||
- Send notifications through pushover to subscriber list of devices and email addresses. Requires pushover app on devices.
|
||||
notes:
|
||||
- You will require a pushover.net account to use this module. But no account
|
||||
is required to receive messages.
|
||||
- You will require a pushover.net account to use this module. But no account is required to receive messages.
|
||||
extends_documentation_fragment:
|
||||
- community.general.attributes
|
||||
attributes:
|
||||
|
@ -53,7 +50,7 @@ options:
|
|||
- Message priority (see U(https://pushover.net) for details).
|
||||
required: false
|
||||
default: '0'
|
||||
choices: [ '-2', '-1', '0', '1', '2' ]
|
||||
choices: ['-2', '-1', '0', '1', '2']
|
||||
device:
|
||||
type: str
|
||||
description:
|
||||
|
@ -64,9 +61,9 @@ options:
|
|||
author:
|
||||
- "Jim Richardson (@weaselkeeper)"
|
||||
- "Bernd Arnold (@wopfel)"
|
||||
'''
|
||||
"""
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = r"""
|
||||
- name: Send notifications via pushover.net
|
||||
community.general.pushover:
|
||||
msg: '{{ inventory_hostname }} is acting strange ...'
|
||||
|
@ -90,7 +87,7 @@ EXAMPLES = '''
|
|||
user_key: baa5fe97f2c5ab3ca8f0bb59
|
||||
device: admins-iPhone
|
||||
delegate_to: localhost
|
||||
'''
|
||||
"""
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.six.moves.urllib.parse import urlencode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue