2012-03-19 00:25:56 +01:00
|
|
|
{
|
|
|
|
"events": [
|
|
|
|
"start",
|
|
|
|
[
|
|
|
|
"play start",
|
|
|
|
[
|
|
|
|
"all"
|
|
|
|
]
|
|
|
|
],
|
2012-03-20 03:42:31 +01:00
|
|
|
[
|
2012-03-21 03:29:21 +01:00
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"answer": "Wuh, I think so, Brain, but if we didn't have ears, we'd look like weasels.",
|
|
|
|
"changed": true,
|
|
|
|
"metadata": "/etc/ansible/setup",
|
|
|
|
"port": "5150",
|
|
|
|
"written": "/etc/ansible/setup"
|
|
|
|
}
|
|
|
|
]
|
2012-03-20 03:42:31 +01:00
|
|
|
],
|
|
|
|
[
|
|
|
|
"import",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
"/home/mdehaan/ansible/test/common_vars.yml"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"import",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
2012-03-24 01:51:15 +01:00
|
|
|
"/home/mdehaan/ansible/test/CentOS.yml"
|
2012-03-21 03:29:21 +01:00
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"answer": "Wuh, I think so, Brain, but if we didn't have ears, we'd look like weasels.",
|
|
|
|
"changed": true,
|
|
|
|
"cow": "moo",
|
|
|
|
"duck": "quack",
|
|
|
|
"metadata": "/etc/ansible/setup",
|
|
|
|
"port": "5150",
|
|
|
|
"testing": "default",
|
|
|
|
"written": "/etc/ansible/setup"
|
|
|
|
}
|
2012-03-20 03:42:31 +01:00
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"test basic success command",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"/bin/true"
|
|
|
|
],
|
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
|
|
|
"stdout": ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"test basic success command 2",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"cmd": [
|
|
|
|
"/bin/true"
|
|
|
|
],
|
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
|
|
|
"stdout": ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
2012-03-20 00:32:38 +01:00
|
|
|
"test basic shell, plus two ways to dereference a variable",
|
2012-03-19 00:25:56 +01:00
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
2012-03-20 00:32:38 +01:00
|
|
|
"cmd": "echo $HOME 5150 5150 ",
|
2012-03-19 00:25:56 +01:00
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
2012-03-20 00:32:38 +01:00
|
|
|
"stdout": "/root 5150 5150"
|
2012-03-19 00:25:56 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-20 03:42:31 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"test vars_files imports",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"cmd": "echo quack moo default ",
|
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
|
|
|
"stdout": "quack moo default"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"test copy",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"changed": true,
|
|
|
|
"group": "root",
|
|
|
|
"mode": 420,
|
|
|
|
"path": "/tmp/ansible_test_data_copy.out",
|
|
|
|
"state": "file",
|
|
|
|
"user": "root"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-26 01:05:27 +02:00
|
|
|
[
|
|
|
|
"notify",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
"on change 1"
|
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"test template",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"changed": true,
|
|
|
|
"group": "root",
|
|
|
|
"mode": 420,
|
|
|
|
"path": "/tmp/ansible_test_data_template.out",
|
|
|
|
"state": "file",
|
|
|
|
"user": "root"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-26 01:05:27 +02:00
|
|
|
[
|
|
|
|
"notify",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
"on change 1"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"notify",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
"on change 2"
|
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"async poll test",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
2012-03-26 01:05:27 +02:00
|
|
|
"ok",
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
2012-03-26 01:05:27 +02:00
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"started": 1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"started": 1
|
|
|
|
}
|
2012-03-19 00:25:56 +01:00
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"async poll",
|
|
|
|
[
|
|
|
|
"127.0.0.1"
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
|
|
|
"cmd": "sleep 5 ",
|
|
|
|
"finished": 1,
|
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
|
|
|
"stdout": ""
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-24 01:51:15 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"this should be skipped",
|
|
|
|
false
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"skipped",
|
|
|
|
[
|
|
|
|
"127.0.0.1"
|
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"on change 1",
|
|
|
|
true
|
|
|
|
]
|
|
|
|
],
|
2012-03-26 01:05:27 +02:00
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
2012-03-31 03:56:10 +02:00
|
|
|
"cmd": "echo 'this should fire once' ",
|
2012-03-26 01:05:27 +02:00
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
|
|
|
"stdout": "this should fire once"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2012-03-19 00:25:56 +01:00
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
2012-03-31 03:56:10 +02:00
|
|
|
"cmd": "echo 'this should fire once' ",
|
2012-03-19 00:25:56 +01:00
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
2012-03-24 01:51:15 +01:00
|
|
|
"stdout": "this should fire once"
|
2012-03-19 00:25:56 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"task start",
|
|
|
|
[
|
|
|
|
"on change 2",
|
|
|
|
true
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"ok",
|
|
|
|
[
|
|
|
|
"127.0.0.1",
|
|
|
|
{
|
2012-03-31 03:56:10 +02:00
|
|
|
"cmd": "echo 'this should fire once also' ",
|
2012-03-19 00:25:56 +01:00
|
|
|
"rc": 0,
|
|
|
|
"stderr": "",
|
2012-03-24 01:51:15 +01:00
|
|
|
"stdout": "this should fire once also"
|
2012-03-19 00:25:56 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"results": {
|
|
|
|
"127.0.0.1": {
|
|
|
|
"changed": 2,
|
2012-03-26 01:05:27 +02:00
|
|
|
"failures": 0,
|
|
|
|
"ok": 12,
|
|
|
|
"skipped": 1,
|
|
|
|
"unreachable": 0
|
2012-03-19 00:25:56 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|