From 19f0b5f1cc7df3593ab39a011f3a59e8e4d5084a Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Fri, 9 Dec 2016 13:46:27 +0000 Subject: [PATCH] Remove unneeded quotes - notification/slack.py (#18826) --- lib/ansible/modules/notification/slack.py | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/ansible/modules/notification/slack.py b/lib/ansible/modules/notification/slack.py index 3d50e89df95..7e036559cd0 100644 --- a/lib/ansible/modules/notification/slack.py +++ b/lib/ansible/modules/notification/slack.py @@ -123,48 +123,48 @@ EXAMPLES = """ local_action: module: slack token: thetoken/generatedby/slack - msg: "{{ inventory_hostname }} completed" + msg: '{{ inventory_hostname }} completed' - name: Send notification message via Slack all options local_action: module: slack token: thetoken/generatedby/slack - 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 parse: 'none' - name: insert a color bar in front of the message for visibility purposes and use the default webhook icon and name configured in Slack slack: token: thetoken/generatedby/slack - msg: "{{ inventory_hostname }} is alive!" + msg: '{{ inventory_hostname }} is alive!' color: good - username: "" - icon_url: "" + username: '' + icon_url: '' - name: Use the attachments API slack: token: thetoken/generatedby/slack 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 - name: Send notification message via Slack (deprecated API using domain) local_action: module: slack - domain: future500.slack.com + domain: example.slack.com token: thetokengeneratedbyslack - msg: "{{ inventory_hostname }} completed" + msg: '{{ inventory_hostname }} completed' """