1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

make json valid

This commit is contained in:
Trevor Wennblom 2013-04-10 23:43:16 -05:00
parent 290780d13f
commit b779fa4fe9
2 changed files with 17 additions and 17 deletions

View file

@ -40,7 +40,7 @@ expressed in the 'ansible-modules' documentation.::
{
"dark" : {
"web1.example.com" : "failure message"
}
},
"contacted" : {
"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::
{
'databases' : {
'hosts' : [ 'host1.example.com', 'host2.example.com' ],
'vars' : {
'a' : true
"databases" : {
"hosts" : [ "host1.example.com", "host2.example.com" ],
"vars" : {
"a" : true
}
},
'webservers' : [ 'host2.example.com', 'host3.example.com' ],
'atlanta' : {
'hosts' : [ 'host1.example.com', 'host4.example.com', 'host5.example.com' ],
'vars' : {
'b' : false
"webservers" : [ "host2.example.com", "host3.example.com" ],
"atlanta" : {
"hosts" : [ "host1.example.com", "host4.example.com", "host5.example.com" ],
"vars" : {
"b" : false
},
'children': [ 'marietta', '5points' ],
"children": [ "marietta", "5points" ],
},
'marietta' : [ 'host6.example.com' ],
'5points' : [ 'host7.example.com' ]
"marietta" : [ "host6.example.com" ],
"5points" : [ "host7.example.com" ]
}
.. 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::
{
'favcolor' : 'red',
'ntpserver' : 'wolf.example.com',
'monitoring' : 'pack.example.com'
"favcolor" : "red",
"ntpserver" : "wolf.example.com",
"monitoring" : "pack.example.com"
}
Example: The Cobbler External Inventory Script

View file

@ -180,7 +180,7 @@ Let's test that module::
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'
```````````````````````