make json valid

pull/2640/head
Trevor Wennblom 12 years ago
parent 290780d13f
commit b779fa4fe9

@ -40,7 +40,7 @@ expressed in the 'ansible-modules' documentation.::
{ {
"dark" : { "dark" : {
"web1.example.com" : "failure message" "web1.example.com" : "failure message"
} },
"contacted" : { "contacted" : {
"web2.example.com" : 1 "web2.example.com" : 1
} }
@ -110,22 +110,22 @@ Each group's value should be either a hash/dictionary containing a list of each
simply a list of host/IP addresses, like so:: simply a list of host/IP addresses, like so::
{ {
'databases' : { "databases" : {
'hosts' : [ 'host1.example.com', 'host2.example.com' ], "hosts" : [ "host1.example.com", "host2.example.com" ],
'vars' : { "vars" : {
'a' : true "a" : true
} }
}, },
'webservers' : [ 'host2.example.com', 'host3.example.com' ], "webservers" : [ "host2.example.com", "host3.example.com" ],
'atlanta' : { "atlanta" : {
'hosts' : [ 'host1.example.com', 'host4.example.com', 'host5.example.com' ], "hosts" : [ "host1.example.com", "host4.example.com", "host5.example.com" ],
'vars' : { "vars" : {
'b' : false "b" : false
}, },
'children': [ 'marietta', '5points' ], "children": [ "marietta", "5points" ],
}, },
'marietta' : [ 'host6.example.com' ], "marietta" : [ "host6.example.com" ],
'5points' : [ 'host7.example.com' ] "5points" : [ "host7.example.com" ]
} }
.. versionadded: 1.0 .. versionadded: 1.0
@ -137,9 +137,9 @@ hash/dictionary, or a hash/dictionary of variables to make available to template
if the script does not wish to do this, returning an empty hash/dictionary is the way to go:: if the script does not wish to do this, returning an empty hash/dictionary is the way to go::
{ {
'favcolor' : 'red', "favcolor" : "red",
'ntpserver' : 'wolf.example.com', "ntpserver" : "wolf.example.com",
'monitoring' : 'pack.example.com' "monitoring" : "pack.example.com"
} }
Example: The Cobbler External Inventory Script Example: The Cobbler External Inventory Script

@ -180,7 +180,7 @@ Let's test that module::
This should return something like:: This should return something like::
{"changed": True, "time": "2012-03-14 12:23:00.000307"} {"changed": true, "time": "2012-03-14 12:23:00.000307"}
Module Provided 'Facts' Module Provided 'Facts'
``````````````````````` ```````````````````````

Loading…
Cancel
Save