Commit Graph

188 Commits (25eedcdb43504e5d4d46db2e42c64c13be07e35f)

Author SHA1 Message Date
Michael DeHaan 2511992659 Surface module debug (-D) to /usr/bin/ansible also 13 years ago
Michael DeHaan 4a8dc50249 Merge pull request #97 from jhoekx/stderr-logging
Stderr logging
13 years ago
Jeroen Hoekx 74ae4b29ad Add a debug attribute to Runner/Playbook.
This prints the stderr of the executed modules on local stderr.
Most methods on Runner now return a fourth "err" parameter.
13 years ago
Jeroen Hoekx fb1a313974 Correct default user and port in playbook.
They are set in the constructor.
13 years ago
Michael DeHaan 6275e57718 pyflakes: Unused import / unused var 13 years ago
Michael DeHaan 9569be8bdb Need for quoting/unquoting problems go away once module_args are all treated as strings throughout. 13 years ago
Michael DeHaan 3ded27fe35 Treat module args as strings everywhere to avoid unneccessary shlex and requoting 13 years ago
Michael DeHaan f11de2f5c9 --extra-vars option for ansible-playbook
Conflicts:

	lib/ansible/playbook.py

Removed unneccessary shlex and replaced with basic split, some repurcussions in runner
that can be eliminated once we consistently pass args as a string (soon).
13 years ago
Michael DeHaan 6db87a5018 Minor style fix, update test to match quote fix patch 13 years ago
Matthew Williams ec6f488d1f shell quoting fixes
(edited author's original commit comment -- MPD)
13 years ago
Matthew Williams 99d5796605 support for quotes strings in command module (via posix=False), related fixes to keep other things from breaking 13 years ago
Michael DeHaan 2372a3b734 Sudo support operational in both playbooks and main program. Implementation could use some cleanup. 13 years ago
Michael DeHaan 81e3496037 Added preliminary support for --sudo to ansible, playbook support and further testing pending. 13 years ago
Michael DeHaan 72cc99722d sudo tweaks 13 years ago
Michael DeHaan 7ae75eb14b Default sudo is false 13 years ago
Michael DeHaan c2a6e2f97b Work in progress on sudo, hitting some issues with paramiko saying the connection is closed. 13 years ago
Michael DeHaan 7133734d87 Remove debug statements (WIP on sudo) 13 years ago
Michael DeHaan 4971101f27 Handler doesn't take this param. 13 years ago
Michael DeHaan 706ba9fd9a Add paramiko/pycrypto atfork workaround (can back out later if not useful), tweak error
message text per skvidal's suggestion
13 years ago
Michael DeHaan b30ddc4520 Expose remote_port option in playbook 13 years ago
Christopher Johnston 68818ad1fe add support for remote ports in playbooks 13 years ago
Christopher Johnston 15e781eb51 add exception check for paramiko if older then 1.7 13 years ago
Christopher Johnston f06ec76fdb add support for using an alternate remote port 13 years ago
Michael DeHaan b1471bf857 Add more comments to the callbacks file 13 years ago
Michael DeHaan 95670ce6b5 remove unused function 13 years ago
Michael DeHaan f9da7cb180 remove functions that are no longer used 13 years ago
Michael DeHaan 35d77d0433 Make it an error to try to hit a change handler that doesn't exist 13 years ago
Michael DeHaan f693759252 Style fixes from pep8 makefile target 13 years ago
Michael DeHaan f074f1c4c4 Fixes from pyflakes 13 years ago
Michael DeHaan 35c8750bbb Fix tree view to work with callbacks 13 years ago
Michael DeHaan 45a455a805 Make /usr/bin/ansible output realtime and also delete some code! 13 years ago
Michael DeHaan eb67a91c57 Merge remote branch 'public/master' 13 years ago
Michael DeHaan aaafd12b59 rm FIXMEs 13 years ago
Jeroen Hoekx a370261dce Playbook: create one task per include instead of per argument. 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 ab55fa4266 Revert "Only override the pattern if it is ommitted"
This reverts commit bb0bf9eef4.
13 years ago
Michael DeHaan bb0bf9eef4 Only override the pattern if it is ommitted 13 years ago
Michael DeHaan 9df612f007 Add a "-o" override option so hosts not in a playbook can still be managed by a playbook. 13 years ago
Michael DeHaan 292ac4aad2 Make it such that the 'name' element of each playbook line is optional. 13 years ago
Michael DeHaan 44d4dede92 Split conditional imports in playbook into subfunction, fix small bug in event reporting on playbook
actions.
13 years ago
Michael DeHaan b43019f3a1 In playbooks, a return code (rc) of non-zero should fail the playbook. 13 years ago
Michael DeHaan 6ab615c724 Code cleanup for playbooks, also added 'on_skipped' callback 13 years ago
Seth Vidal 53446d6d45 make sure the setup step in a playbook has the sshpass included 13 years ago
Seth Vidal 89d4bc542c fix up minor type - AnsibleException should be AnsibleError 13 years ago
Michael DeHaan a8c921cbcc Allow groups to be passed to runner API to make parse_hosts optional, misc fixes as a result of refactoring in Runner.
Cleanup in Playbooks module is next.
13 years ago
Michael DeHaan 94605b811b Fixes from refactoring 13 years ago
Michael DeHaan 6a7aac38c5 misc cleanup in the runner module, splitting some things out into utils, breaking up functions into smaller functions. 13 years ago
Michael DeHaan 7ed734dfb2 move callbacks to seperate file, anticipating callbacks for Runner() as well 13 years ago
Michael DeHaan 7883f414ce unused module 13 years ago
Michael DeHaan e6406fa5a7 Allow variable expressions to be stored as variables themselves, do some things to allow setup strings
to more easily contain spaces without being mangled, which is neccessary because of the above.
13 years ago