Commit Graph

9157 Commits (616d7e53b1c02c767e62b594d473218471e0d4f1)
 

Author SHA1 Message Date
Michael DeHaan 718e2930b2 async module now forks 13 years ago
Michael DeHaan 45c40524ef Time limit needs to be passed to async_wrapper. 13 years ago
Michael DeHaan a06d8859fa Added start of async_status script.
Parameters:
  jid=X
  mode=status|cleanup (default status)

status = returns results from the job
cleanup = deletes the job file, should also kill the job if still running (TODO)
13 years ago
Michael DeHaan eaa7714ff8 Laying the groundwork for async mode, async status script still needs to be done, and async_wrapper
still needs to daemonize.  Then, once done, playbook can be taught how to poll async within the
timing window.
13 years ago
Michael DeHaan 1ed212513c Add user to playbook example so it's clear that this is available 13 years ago
Michael DeHaan ab408b0000 Ability to import task lists and handler lists from a top level playbook file. It is possible
to use multiple import statements to implement 'class' like behavior, and also to share
a common list of handlers between multiple patterns.
13 years ago
Michael DeHaan 32c32abb4a Update AUTHORS 13 years ago
Michael DeHaan 1c2d31ef85 add info about the 'all' group to README.md 13 years ago
Michael DeHaan cbfabcd0fb Add -i, -k, and -M to ansible-playbook CLI to match options in /usr/bin/ansible 13 years ago
Michael DeHaan e4304a0ac5 Make sure tempdirs are cleaned up after execution steps, fix notifiers, make sure
service module is installed by setup.py
13 years ago
Michael DeHaan 6541f338df add pyflakes target & associated fixes. Also decided to save JSON to --tree file so it can
be better used programatically.  May have to come up with another system of tree logging for
playbook if playbook decides to have tree logging.  Presumably not the highest priority.
13 years ago
Michael DeHaan 3ad9db4966 Some minor from 'pep8', and silencing the PEP8 messages I don't care about.
Also make pep8 show all messages rather than just 1 per code.
13 years ago
Michael DeHaan 0d7a84d591 Some minor refactoring of playbook code, more to go. 13 years ago
Michael DeHaan c57df6220b Add pydoc to playbook binary, fix default types for playbook '.get()' call 13 years ago
Michael DeHaan 34cbbfbfe1 Added pydoc for utils.py 13 years ago
Michael DeHaan bf967adf83 Added pydoc for functions in Cli() 13 years ago
Michael DeHaan e9a24cdad4 Extensive refactoring of bin/ansible, moving most output functions into lib/ansible/utils to
encourage readability and make things more maintainable.
13 years ago
Michael DeHaan b33ef0de60 Add a newline in output here, possibly considering printing top level keys flat 13 years ago
Michael DeHaan 1420c49277 Still seeing some weirdness from ohai but we can probably simplify
this until we figure out what that is.
13 years ago
Michael DeHaan e6a1acf756 Let "all" be an alias for "*" in patterns, fix output bug on non-command execution, make clean now removes the build dir 13 years ago
Michael DeHaan c8b1bbc7ea make command module error when no -a more obvious as command is the default module and someone
may forget about -a.  The CLI already warns about no host pattern by pulling up usage.
13 years ago
Michael DeHaan 146cb3ff7e update README.md on playbook field names 13 years ago
Michael DeHaan 5040c01640 rename 'pattern' to 'hosts' in playbook format. 13 years ago
Michael DeHaan 687a315a80 Increasing default --forks to 5 13 years ago
Michael DeHaan 847846af0e -p has been replaced by a required option. Various docs changes. 13 years ago
Michael DeHaan 4ce1f1dd5e README/doc/example updates to go with group support and CLI option changes.
Minimizing manpage until CLI options stabilize.
13 years ago
Michael DeHaan bed29b7e11 Allow the /etc/ansible/hosts file to contain groups and those group names to be used in place
of pattern names.
13 years ago
Michael DeHaan 24d854e0bc Merge pull request #63 from chjohnst/master
add -T option for ssh timeout
13 years ago
Christopher Johnston d15172abdc add a -T option for setting ssh timeout in seconds 13 years ago
Michael DeHaan a191af6af4 Update README.md 13 years ago
Michael DeHaan f2a0346080 Merge pull request #55 from chjohnst/master
python 2.5 dep
13 years ago
Christopher Johnston 2773234c3f python 2.5 does not include json so lets try to use simplejson 13 years ago
Michael DeHaan ab266472be Trim errors on connection refused messages 13 years ago
Michael DeHaan a40ac93716 Plan to merge things back into ansible means we can simplify our code tree
by eliminating the lib/ansible/scripts file.  Ansible-playbook
doesn't have enough options to need it's own thing, and we're going to try
to work most things back into bin/ansible
13 years ago
Michael DeHaan 55d256d82a Added solution to avoid checking in manpages. Just run "make" and we'll build
docs before python setup.py.   Seems reasonable to let Makefile drive
13 years ago
Michael DeHaan 19fdb7305d have command module raise an error if no arguments are supplied 13 years ago
Michael DeHaan 1427ade3af Have ansible yell if no module name is supplied 13 years ago
Michael DeHaan edf6da5c38 Rename opts so --help looks cleaner 13 years ago
Michael DeHaan 281f96b8dd merge Seth's ansible-command script with ansible proper, so we can do nice output, one line output,
and treeish saving everywhere.

there are probably some quirks here we'll want to refine further later, for instance, we should
be able to do nicer things with "can't contact host tracebacks".
13 years ago
Michael DeHaan d8b5e667d8 Doc rebuild 13 years ago
Michael DeHaan 442c2488ba Minor playbook doc updates 13 years ago
Michael DeHaan 0356925639 Rename ans-command to ansible-command and ans-playbook to ansible-playbook so my brain
can tab complete better
13 years ago
Michael DeHaan d0906e187f Correct file location error in example 13 years ago
Michael DeHaan 058fa5bd15 Manpage and doc updates 13 years ago
Michael DeHaan 430f38d54c minor option consistency 13 years ago
Michael DeHaan ab17f6f44e Because I can't remember which options are supposed to be uppercase and which are not,
rename all of them so we can use non-conflicting lowercase.  Manpage updates pending
13 years ago
Michael DeHaan de1d0011bc Take darkened hosts out of the playbook rotation, fix error handling in template
module so that if a directory path is specified we get valid output
13 years ago
Michael DeHaan 79d91e024b Updates to ansible-playbook helper program 13 years ago
Michael DeHaan 42767b30fe Fix output on failed hosts 13 years ago
Michael DeHaan b9b0240543 Continued ans-command output upgrades, fixed output_dest back again 13 years ago