Commit Graph

136 Commits (252a51be912e0b0b3b09e563e67383f700ee4153)

Author SHA1 Message Date
James Tanner e8b54dd073 Fixes #4852 properly evaluate log_path writability 12 years ago
James Tanner 40886c42b5 Fixes #4561 Compare task name without role prefix for start-at-task 12 years ago
Michael DeHaan e131de4de0 Added "debug: var=variableName" capability. 12 years ago
Michael DeHaan 43df00550d Merge pull request #3827 from mscherer/disable_callbacks
add a way for callback to disable itself
12 years ago
Michael DeHaan 9637f620d7 Deprecation warnings of several flavors, nice and purple and can be disabled
in ansible.cfg.
12 years ago
Andrey Shorin 35457b67f5 Pass host to runner_on_file_diff callback 12 years ago
James Martin d5f20e6b21 Optionally display Skipping [host] messages. 12 years ago
James Cammarata d5b96abd80 Added support for -vvvv to enable ssh connection debugging
This patch also checks specifically for a return code of 255, which
indicates an unknown SSH error of some kind. When that happens, ansible
will now recommend running with -vvvv (if not enabled) or show the
output from 'ssh -vvv' (when it is enabled)
12 years ago
Hiroaki Nakamura 2357194b39 Add failed_when module variable.
Implementation note: Ternery operator trick for python prior to 2.5 is used.
(test and [when_true_value] or [when_false_value])[0]
http://stackoverflow.com/questions/394809/ternary-conditional-operator-in-python#comment1466794_394887
12 years ago
Michael Scherer 12bf9a8b69 add a way for callback to disable itself
The idea is that some plugin would not be called in some
specific case, and the callback should decide by itself.

Having a way to globally disable it is much cleaner than
disabling every method one by one on the plugin side.

My use case is for fedora-infrastructure that cannot be run
from git checkout since it try to connect to the message bus,
but another case would be to bootstrap infrastructure, or to
run the code on a test servers without having all the callback
infrastructure setup.
13 years ago
Michael DeHaan baffa8df72 These fields are booleans. 13 years ago
Michael DeHaan 3dbe65def2 PEP8 indent fix 13 years ago
James Cammarata 82c806979b Only use LOG_LOCK in log_flock if a runner is not specified
Fixes issue #3466 - When ansible can't authenticate against a host,
and your answer is no, ansible crash.
13 years ago
Michael DeHaan 0f26439234 Remove variable per pyflakes 13 years ago
Michael DeHaan 2cb7c30834 Improve interlaced output prevention when asking for host key approval. 13 years ago
Michael DeHaan 132c89e681 Merge branch 'callbackinit' of git://github.com/sergevanginderachter/ansible into devel 13 years ago
Scott Sturdivant b10b676158 Print the default value if one is provided. 13 years ago
Serge van Ginderachter 2a7f9df109 add support for callback_plugins/ relative to playbook 13 years ago
WAKAYAMA Shirou 66247042a5 fix utf-8 named task failed with --step. 13 years ago
Michael DeHaan 4840e59b90 Allow cowsay to be removed mid playbook run. 13 years ago
Serge van Ginderachter dd9919342b hide magic variables used bin/ansible output
'verbose_override' and 'verbose_always'
13 years ago
Serge van Ginderachter 94028852d9 Make debug module always verbose in playbooks
Created a new flag 'verbose_always' handled by
on_ok callback, similar to the 'verbose_override'
flag used by the setup module.
13 years ago
Michael DeHaan cd57d59913 If ansible is configured to use a log file but cannot write to it, exit, but don't traceback. 13 years ago
Brian Coca 8dd72d2828 changed lockfile to be opened in write mode (solaris for one doesn't like
exclusive locks on read)
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
13 years ago
Michael DeHaan 2a091a3505 Remove duplicate import. 13 years ago
Michael DeHaan ea8302e68d Indentation. 13 years ago
James Cammarata 2440861b1b BUGFIX - --start-at-task= works only with --step
From issue #2820, --start-at-task does not actually run tasks
unless --step is specified. This appears to be because skip_task
is being evaluated as True in PlayBook._run_task(). This patch
ensures skip_task is set to False in the callback.
13 years ago
Michael DeHaan e90023281d Slightly refine log output to include username in addition to pid. 13 years ago
Matt Coddington 3b8f69bac8 add pid to log 13 years ago
Michael DeHaan bcac289667 Cows don't need to display brackets around strings. 13 years ago
Michael DeHaan b8fdcff524 Merge branch 'nocows' of git://github.com/jpmens/ansible into devel
Conflicts:
	lib/ansible/callbacks.py
	lib/ansible/constants.py
13 years ago
Michael DeHaan aa55268514 Adds a logfile for ansible playbooks that can be set by the environment or configuration file. 13 years ago
Michael DeHaan 515fbd5a17 Restructure output to prevent rare cases of interlaced I/O in multiprocessing paths. 13 years ago
Jan-Piet Mens dfd885a012 Make ANSIBLE_NOCOWS configurable
nocows = 1 in ansible.cfg
	or old environment variable ANSIBLE_NOCOWS=1
add to ansible.cfg example
13 years ago
Michael DeHaan 53ac0bbec2 Instantiate callback plugins only once so we can set play/task objects on them and they'll stick. 13 years ago
Seth Vidal 690738ea32 implement --start-at-task option to hop to a specific task before starting running them 13 years ago
Michael DeHaan 00252353b9 Decided I liked the asterisks 13 years ago
Michael DeHaan bc0be456da Modify output banners to have constant length and use dashes instead
of "-" to be less visually heavy (unless cowsay is installed of course)
13 years ago
Michael DeHaan e9d11173cd Remove obsolete comment 13 years ago
Seth Vidal a7a083d882 when --step isn't specified make sure to print the banner 13 years ago
Seth Vidal 7687c2caf8 add --step option to ansible-playbooks to let people step through a playbook
one by one - asking for confirmation along the way.

also allows to 'continue' after a certain point
13 years ago
Michael DeHaan c92bfb7234 Merge branch 'madcow2' of git://github.com/bcoca/ansible into devel 13 years ago
Jimmy Tang 81a34c2d1d Cowsay on OSX macports 13 years ago
Stephen Fromm fa07604d43 Fix CliRunnerCallbacks.on_file_diff in callbacks.py
When running ansible -C, I get a traceback that ends with
    AttributeError: Values instance has no attribute 'diff'
This fixes on_file_diff to behave similar to
PlaybookRunnerCallbacks.on_file_diff().
13 years ago
Brian Coca e9907e9c8a added random cow pick through ANSIBLE_COW_SELECTION env var
Signed-off-by: Brian Coca <bcoca@tablethotels.com>
13 years ago
Stoned Elipot 10e9f1fc1e Implement --diff for the copy module. 13 years ago
Michael DeHaan c4779d95b8 Removing unused import, 'make pyflakes' is now clean. 13 years ago
Blair Zajac fa8e653011 Simplify and correct comparisons with None. 13 years ago
Michael DeHaan 72a05ae2a0 Move diff code more into runner code. 13 years ago
Michael DeHaan a9162a86f2 Very basic --diff option for showing what happens when templates change.
Probably output is not useful if not used with --limit

Works well with --check mode
13 years ago