Jeroen Hoekx
029fe1273c
Modify /usr/bin/ansible and playbooks to use the new async API.
13 years ago
Michael DeHaan
b9982fc17b
Reinstate --extra-vars, which can do things in playbooks like:
...
ansible-playbook release-my-app.yml --extra-vars="version=123"
And make $version available in the playbook without re-editing the file
13 years ago
Michael DeHaan
c0c691089d
Fix bug in src. Should not code this early :)
13 years ago
Michael DeHaan
3f26a1c7f6
verbose option is not being used, so remove it. debug variable still exists.
13 years ago
Michael DeHaan
08c593bee1
Warn if no hosts matched
13 years ago
Michael DeHaan
b9e3b053f9
Simplify playbook tests so things are not timing dependent in the poll section, which is leading to tests
...
not being consistent between runs, even though there wasn't an error. Now we'll just check the final change
counts, which should be just as solid and lead to less churn in the events file.
13 years ago
Michael DeHaan
e103bdda93
Rename test class to match what it is testing
13 years ago
Michael DeHaan
4792021f47
Fix syntax error in user patch
13 years ago
Michael DeHaan
2511992659
Surface module debug (-D) to /usr/bin/ansible also
13 years ago
Michael DeHaan
6dda6f12dc
Applying callback model to runner, and using that in playbooks, so output can be more immediate in playbooks.
...
(Runner still does not use callbacks for default output)
13 years ago
Michael DeHaan
6ab615c724
Code cleanup for playbooks, also added 'on_skipped' callback
13 years ago
Michael DeHaan
a5f4ca50b8
Ratchet up logging a few notches prior to controlling w/ verbosity settings
13 years ago
Michael DeHaan
b5c62ec068
Enhance logging, way to gate verbosity levels pending.
13 years ago
Michael DeHaan
4de7bbb169
Allow conditional imports, see examples/playbook3.yml comments for a full explanation. Extensive
...
refactoring of playbooks now warranted, which we'll do before we move on. This variable assignment
system makes nearly all possible magic possible, for we can use these variables however we like,
even as module names!
13 years ago
Michael DeHaan
c1fe0dd719
Quote long variables in playbooks when feeding them to the setup command
13 years ago
Michael DeHaan
5371a9e497
Regression tests for playbooks, logging the events they call via callbacks.
13 years ago
Michael DeHaan
b15c8e9cb1
Playbook test upgrades, made some notes about callbacks we need to add. Still need to compare events
...
recieved vs expected so we can be notified if this test breaks, and also to add some more detailed
playbooks that use includes & async, etc.
13 years ago
Michael DeHaan
45abe3c16b
Add unit tests for playbooks, and fix an error caught by one
13 years ago