Skip to content

Commit

Permalink
Update irc.py (#3144)
Browse files Browse the repository at this point in the history
Proposal to update the example to YAML syntax.
  • Loading branch information
hyperized authored and resmo committed Oct 16, 2016
1 parent a3b8353 commit 196b87c
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions notification/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,29 @@
'''

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
'''

# ===========================================
Expand Down

0 comments on commit 196b87c

Please sign in to comment.