Remove unused quotes - notification/rocketchat.py (#19156)

pull/19164/head
Fabio Alessandro Locati 8 years ago committed by John R Barker
parent 372352f35d
commit 90a698c367

@ -118,44 +118,43 @@ EXAMPLES = """
module: rocketchat
token: thetoken/generatedby/rocketchat
domain: chat.example.com
msg: "{{ inventory_hostname }} completed"
msg: '{{ inventory_hostname }} completed'
- name: Send notification message via Rocket Chat all options
local_action:
module: rocketchat
domain: chat.example.com
token: thetoken/generatedby/rocketchat
msg: "{{ inventory_hostname }} completed"
channel: "#ansible"
username: "Ansible on {{ inventory_hostname }}"
icon_url: "http://www.example.com/some-image-file.png"
msg: '{{ inventory_hostname }} completed'
channel: #ansible
username: 'Ansible on {{ inventory_hostname }}'
icon_url: http://www.example.com/some-image-file.png
link_names: 0
- name: insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in rocketchat
rocketchat:
token: thetoken/generatedby/rocketchat
domain: chat.example.com
msg: "{{ inventory_hostname }} is alive!"
msg: '{{ inventory_hostname }} is alive!'
color: good
username: ""
icon_url: ""
username: ''
icon_url: ''
- name: Use the attachments API
rocketchat:
token: thetoken/generatedby/rocketchat
domain: chat.example.com
attachments:
- text: "Display my system load on host A and B"
color: "#ff00dd"
title: "System load"
- text: Display my system load on host A and B
color: #ff00dd
title: System load
fields:
- title: "System A"
value: "load average: 0,74, 0,66, 0,63"
short: "true"
- title: "System B"
value: "load average: 5,16, 4,64, 2,43"
short: "true"
- title: System A
value: 'load average: 0,74, 0,66, 0,63'
short: True
- title: System B
value: 'load average: 5,16, 4,64, 2,43'
short: True
"""
RETURN = """

Loading…
Cancel
Save