From 07d6daf787b81ae66951485ea92aff302a91fda5 Mon Sep 17 00:00:00 2001 From: David Beck Date: Tue, 15 May 2018 09:20:09 -0700 Subject: [PATCH] [Fix] Commented out Section due to no Quotes (#24258) Variables are not being passed into ansible unless they are quoted since yaml will automatically interpret them as comments --- lib/ansible/modules/notification/slack.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/notification/slack.py b/lib/ansible/modules/notification/slack.py index 10167ff3a72..9c7c2f160c0 100644 --- a/lib/ansible/modules/notification/slack.py +++ b/lib/ansible/modules/notification/slack.py @@ -112,7 +112,7 @@ EXAMPLES = """ slack: token: thetoken/generatedby/slack msg: '{{ inventory_hostname }} completed' - channel: #ansible + channel: '#ansible' username: 'Ansible on {{ inventory_hostname }}' icon_url: http://www.example.com/some-image-file.png link_names: 0 @@ -132,7 +132,7 @@ EXAMPLES = """ token: thetoken/generatedby/slack attachments: - text: Display my system load on host A and B - color: #ff00dd + color: '#ff00dd' title: System load fields: - title: System A