|
|
@ -16,8 +16,9 @@ options:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
service:
|
|
|
|
service:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Name of the service (displayed in the message)
|
|
|
|
- Name of the service (displayed as the "user" in the message)
|
|
|
|
required: true
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: ansible
|
|
|
|
message:
|
|
|
|
message:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Message content
|
|
|
|
- Message content
|
|
|
@ -66,7 +67,7 @@ def main():
|
|
|
|
argument_spec = dict(
|
|
|
|
argument_spec = dict(
|
|
|
|
channel_token = dict(type='str', required=True),
|
|
|
|
channel_token = dict(type='str', required=True),
|
|
|
|
message = dict(type='str', required=True),
|
|
|
|
message = dict(type='str', required=True),
|
|
|
|
service = dict(type='str', required=True),
|
|
|
|
service = dict(type='str', default='ansible'),
|
|
|
|
url = dict(type='str', default=None),
|
|
|
|
url = dict(type='str', default=None),
|
|
|
|
icon_url = dict(type='str', default=None),
|
|
|
|
icon_url = dict(type='str', default=None),
|
|
|
|
)
|
|
|
|
)
|
|
|
|