Update irc.py (#3144)

Proposal to update the example to YAML syntax.
pull/18777/head
hyperized 8 years ago committed by Matt Clay
parent 2796370b57
commit d815890aa6

@ -113,22 +113,29 @@ author:
''' '''
EXAMPLES = ''' 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 - local_action:
server="irc.example.net" module: irc
channel="#t1" port: 6669
msg="All finished at {{ ansible_date_time.iso8601 }}" server: "irc.example.net"
color=red channel: "#t1"
nick=ansibleIRC msg: "All finished at {{ ansible_date_time.iso8601 }}"
color: red
nick: ansibleIRC
- local_action: irc port=6669 - local_action:
server="irc.example.net" module: irc
channel="#t1" port: 6669
nick_to=["nick1", "nick2"] server: "irc.example.net"
msg="All finished at {{ ansible_date_time.iso8601 }}" channel: "#t1"
color=red nick_to: ["nick1", "nick2"]
nick=ansibleIRC msg: "All finished at {{ ansible_date_time.iso8601 }}"
color: red
nick: ansibleIRC
''' '''
# =========================================== # ===========================================

Loading…
Cancel
Save