From 4b9a65fd7c443716553a2d04b2e80a73b4b76e8c Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Sun, 11 Dec 2016 23:16:42 +0100 Subject: [PATCH] Improve quotes - notification/hall.py (#19166) --- lib/ansible/modules/notification/hall.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/ansible/modules/notification/hall.py b/lib/ansible/modules/notification/hall.py index d8766412d01..86e91c5a97b 100755 --- a/lib/ansible/modules/notification/hall.py +++ b/lib/ansible/modules/notification/hall.py @@ -51,20 +51,20 @@ options: EXAMPLES = """ - name: Send Hall notifiation - local_action: - module: hall + hall: room_token: title: Nginx - msg: Created virtual host file on {{ inventory_hostname }} + msg: 'Created virtual host file on {{ inventory_hostname }}' + delegate_to: loclahost - name: Send Hall notification if EC2 servers were created. - when: ec2.instances|length > 0 - local_action: - module: hall + hall: room_token: title: Server Creation - msg: "Created EC2 instance {{ item.id }} of type {{ item.instance_type }}.\\nInstance can be reached at {{ item.public_ip }} in the {{ item.region }} region." - with_items: "{{ ec2.instances }}" + msg: 'Created EC2 instance {{ item.id }} of type {{ item.instance_type }}.\\nInstance can be reached at {{ item.public_ip }} in the {{ item.region }} region.' + delegate_to: loclahost + when: ec2.instances|length > 0 + with_items: '{{ ec2.instances }}' """ HALL_API_ENDPOINT = 'https://hall.com/api/1/services/generic/%s'