From 196b87caec14ed66bf1dcc5e62f53fb7b2976c64 Mon Sep 17 00:00:00 2001 From: hyperized Date: Sun, 16 Oct 2016 23:41:36 +0200 Subject: [PATCH] Update irc.py (#3144) Proposal to update the example to YAML syntax. --- notification/irc.py | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/notification/irc.py b/notification/irc.py index 19a04862a65..8217805ea79 100644 --- a/notification/irc.py +++ b/notification/irc.py @@ -113,22 +113,29 @@ author: ''' EXAMPLES = ''' -- irc: server=irc.example.net channel="#t1" msg="Hello world" +- irc: + server: irc.example.net + channel: "#t1" + msg: "Hello world" -- local_action: irc port=6669 - server="irc.example.net" - channel="#t1" - msg="All finished at {{ ansible_date_time.iso8601 }}" - color=red - nick=ansibleIRC +- local_action: + module: irc + port: 6669 + server: "irc.example.net" + channel: "#t1" + msg: "All finished at {{ ansible_date_time.iso8601 }}" + color: red + nick: ansibleIRC -- local_action: irc port=6669 - server="irc.example.net" - channel="#t1" - nick_to=["nick1", "nick2"] - msg="All finished at {{ ansible_date_time.iso8601 }}" - color=red - nick=ansibleIRC +- local_action: + module: irc + port: 6669 + server: "irc.example.net" + channel: "#t1" + nick_to: ["nick1", "nick2"] + msg: "All finished at {{ ansible_date_time.iso8601 }}" + color: red + nick: ansibleIRC ''' # ===========================================