Stephen Fromm
4e7b67a45a
Add option to pass list of dirs to get_bin_path in module_common.py
...
The optional list is prepended to PATH.
Fix get_bin_path() to use os.path.join().
14 years ago
Stephen Fromm
4c62e495eb
Add method get_bin_path to module_common.py
...
This is meant to assist all the modules that look for the full path of
an executable. If it is found and is X_OK, returns the full path.
Otherwise, it returns None.
14 years ago
Daniel Hokka Zakrisson
2d448f2a34
Invoke cowsay without going through the shell
14 years ago
Michael DeHaan
00c4c5c4a1
If tags "all" is used, don't choke.
14 years ago
Michael DeHaan
7ec0afbebc
Merge pull request #956 from tima/jinja-json-filter
...
Add tojson filter to jinja environment used by the template module.
14 years ago
Timothy Appnel
d306c8debc
Add tojson filter to jinja environment used by the template module.
14 years ago
Michael DeHaan
4caf85e37b
Fix --limit for external inventory scripts, slight variant on fix from pull #949
14 years ago
Michael DeHaan
4002cfbdcd
Minor string tweak.
14 years ago
Mark Theunissen
2755602dcb
Check to make sure that tags passed as parameters actually exist
14 years ago
Daniel Hokka Zakrisson
89a31b0a2a
Allow variable expansion for vars that evaluate to false
14 years ago
Michael DeHaan
98483f5252
Merge pull request #942 from dagwieers/color-capability
...
Check for terminal capabilities if curses is available
14 years ago
Michael DeHaan
cb18b3eb26
Merge branch 'devel' of github.com:ansible/ansible into devel
14 years ago
Dag Wieërs
47f3be3de0
Check for terminal capabilities if curses is available
...
Normally curses is part of the standard library, but this was not
always the case in the past.
The ANSIBLE_COLOR environment variable and the tty-check have
priority over the curses method (as they are both faster than
the curses test).
14 years ago
Ludovic Claude
b0a4a9e188
Issue #935 : filter out __init__ module from the list of callbacks
14 years ago
Derek Carter
de306922b1
scope error with utils.py branch_path
14 years ago
Michael DeHaan
91a9d0d499
Merge pull request #930 from elventear/version_fix
...
Fix git version when some head files are missing.
14 years ago
Pepe Barbe
5c4a523148
fix _gitinfo function to avoid ansible crashing in cases where the branch file is missing (e.g. after a gc)
14 years ago
Michael DeHaan
2833f48ed3
Make a particular error about an invalid include statement a bit clearer.
14 years ago
Michael DeHaan
3de4e45741
Move plugin directories
14 years ago
Michael DeHaan
bf92a9e4e0
Store invocation differently from an API perspective, but hide in callbacks
14 years ago
Dave Peticolas
4b4bcdedc1
Fix off-by-one serial count (causing infinite loop for serial == 1).
14 years ago
Grzegorz Nosek
94f56614e7
Fix UTF-8 output when using executable inventory files
...
The 'hostname' variable is then unicode, which breaks interpolating
stdout etc. contents into the output strings (they are bytes and cannot
be converted to Unicode using ASCII codec)
14 years ago
Grzegorz Nosek
73b0dd4ac0
Enable UTF-8 commands via the raw module
...
Paramiko does not allow Unicode strings as parameters, so encode
the command to UTF-8.
Test case:
ansible localhost -m raw -a 'echo ą'
(also tested on local and ssh transports without problems)
14 years ago
Grzegorz Nosek
2aef0335cb
Handle UTF-8 in templates
...
This is required to run commands containing non-ASCII characters, e.g.:
ansible localhost -m shell -a 'echo ą'
14 years ago
Tim Bielawa
4121109665
Local actions, they're like aliases for actions with localhost
...
delegates.
Closes #905
14 years ago
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