Michael DeHaan
6e79555621
remove stray imports
14 years ago
Michael DeHaan
3cbf885079
Change the order the setup cache is used to update things, such that the example/playbooks/conditional_part1.yml file
...
works as advertised
14 years ago
Michael DeHaan
3017dc92d9
make callbacks modular
14 years ago
Michael DeHaan
7fd4051857
make connection types pluggable
14 years ago
Michael DeHaan
898d7676f7
Adds the 'serial' keyword to a playbook which controls how many hosts can be running through a playbook at a single time.
...
The default is 0, which means all hosts. If set to 1, each host would run a playbook all the way through before moving
on the next host. Fact gathering is still parallel, regardless of the serial setting.
14 years ago
Michael DeHaan
e13c33bb86
Moved Runner's ReturnData class to a seperate file.
14 years ago
Michael DeHaan
f07e55c568
Adds 'delegate_to' as a task option which can be used to signal load balancers and outage windows.
14 years ago
Pepe Barbe
e4a2de4f82
Syntax changes necessary to make test-module work with Python 2.4
14 years ago
Michael DeHaan
fe923b9394
Adaptation of fix in #891 to avoid cut on only one md5 call.
14 years ago
Michael DeHaan
5bb5082ed9
Fix failed to parse message handling
14 years ago
Michael DeHaan
0579b8b4e6
The command module was not reporting on errors like the other modules when the module failed
...
to parse or return other valid output. This is a slight improvement.
14 years ago
Michael DeHaan
eee2d1afd0
If ANSIBLE_KEEP_REMOTE_FILES=1 is set as an environment file, remote files will not be deleted, which is useful only for development debugging purposes.
14 years ago
Michael DeHaan
de221e6b4b
Add vars to host_vars to prevent some suprises
14 years ago
Michael DeHaan
9851066f4d
Adding ability to set ssh args from config file
14 years ago
Michael DeHaan
6de8c27085
Load parent groups when processing group_vars
14 years ago
Michael DeHaan
7d50a5c2b7
Merge pull request #865 from jdavisp3/vars-file
...
Always load group_vars and host_vars.
14 years ago
willthames
c01040ca72
Further fixes for constants following config introduction
...
Added an ANSIBLE_CONFIG variable to poteentially override
~/.ansible.cfg
Used os.path.expanduser against all paths that might be read in to allow
~ to be used in config files. I'd have preferred it if os.path.expanduser
took None as an argument but it doesn't.
If remote_port *is* set in the ansible config file, then it will be
interpreted as a string (at which point ssh.connect fails with an
obscure message). Most other numeric variables are handled by
the OptionsParser which takes a type variable when setting up the option -
but remote_port is not an option, so never cast to int.
It might be worth adding a type field to get_config that defaults to a string.
That could be e.g. file or int, which then casts it correctly.
14 years ago
Dave Peticolas
b42e835aab
Always load group_vars and host_vars.
14 years ago
Michael DeHaan
7ab0d60b1a
update config code
14 years ago
Michael DeHaan
62fbbf7653
config file support
14 years ago
Michael DeHaan
00c28e2810
formatting
14 years ago
Michael DeHaan
1e4d45af1e
Add module common code to allow it to be easier to indicate whether arguments are mutually exclusive, required in conjunction, or whether one of a list of arguments is required. This simplifies writing Python modules.
14 years ago
Michael DeHaan
deec50fc3c
Default -u (user) and "user:" in playbooks to the current user.
14 years ago
Michael DeHaan
3587ffdef3
Allow /bin/ansible to use --limit
14 years ago
Michael DeHaan
9041adddaa
Add support for ranged patterns like webservers[0-49] for hitting the first 50 webservers.
14 years ago
Michael DeHaan
72faf8eb0a
fix indents
14 years ago
Michael DeHaan
301edb5b52
use StringIO for output concatenation, minor other tweaks to previous commit
14 years ago
Michael DeHaan
3cc564c127
Merge branch 'devel' of https://github.com/SleeplessAnnoyedNerd/ansible into devel
14 years ago
Michael DeHaan
d1ad1d2508
remove stray print
14 years ago
Michael DeHaan
259f2dc4de
Various retooling of the internal code behind inventory pattern matching in support of pending support
...
for host ranges.
14 years ago
Dietmar Schinnerl
ac44c36e4f
Removed unnecessary string replacements since parse_json already filters garbage lines
14 years ago
Dietmar Schinnerl
6b622beb4d
Added filtering of non-JSON lines.
14 years ago
Dietmar Schinnerl
fbdddc7c74
Added utils.last_non_blank_line
14 years ago
Dietmar Schinnerl
993bb5c6f1
Added stub implementation of filters
14 years ago
Dietmar Schinnerl
bfed87df80
Removed leading blanks
14 years ago
Dietmar Schinnerl
6a18075640
Issue #848 : Closing stdin after we read from stdout
14 years ago
Michael DeHaan
1c81ddf8d4
add the limit option, which can be used to further confine the patterns selected by "hosts:" in ansible-playbooks
...
to an additional pattern (a subset) specified on the command line. For instance, a playbook could be reusable
and target "webservers" and "dbservers", but you want to test only in the stage environment, or a few boxes at a time.
14 years ago
Michael DeHaan
05a128c2be
Add ability to store and access module results later on in the play. See examples/playbooks/register_logic for details.
14 years ago
Michael DeHaan
6c5761a79e
Store the ${last_result} for each host to make it usable in only_if conditionals and such.
14 years ago
Michael DeHaan
c7888dd642
Given user report that EL5 sudo does not support '--', remove it, and things seem to still work fine.
...
let me know if this breaks any other boxes.
14 years ago
Michael DeHaan
02ba5a48e0
Merge branch 'cleanup-imports' of https://github.com/jdavisp3/ansible into devel
14 years ago
Michael DeHaan
a7415e5409
Merge pull request #836 from sfromm/rawfixes
...
Fixes for raw module usage and failure to open_session()
14 years ago
Sebastien Bocahu
a3ff6b1958
Fix unneeded bashism
...
Signed-off-by: Sebastien Bocahu <sebastien@ispfr.net>
14 years ago
Stephen Fromm
569d377183
Wrap paramiko open_session() call in try/except
...
Ran across non-unix host where the call to paramiko's open_session() in
exec_command() would throw a EOFError exception. This change wraps the
block in a try/except.
14 years ago
Stephen Fromm
f9bdfde614
Fixes for runner and raw module
...
runner should not try to create or remove tmp paths when using the raw
module.
14 years ago
Dave Peticolas
08272dc25d
Remove unused imports.
14 years ago
Michael DeHaan
05d6e74cce
Merge branch 'vars_prompt_encrypt' of https://github.com/cocoy/ansible into devel
14 years ago
Michael DeHaan
07f459f3b2
Allow user to be passed in via --extra-vars
14 years ago
Michael DeHaan
98a5565106
Fixing up parameterized task includes such that variables can be easily handed to them.
14 years ago
Sundar Raman
2f754f0284
(Re #829 ) Fix for sudo_cmd not defined
14 years ago