Serge van Ginderachter
53a7ab74c8
use os.path.join instead of hardcoded unix separator in first_found lookup plugin
12 years ago
Michael DeHaan
7117ca5395
Allow modules in a "./library" directory to be referenced by their shortforms "modulename:" instead of just "action: modulename"
12 years ago
Michael DeHaan
e90023281d
Slightly refine log output to include username in addition to pid.
12 years ago
Michael DeHaan
ba8f2fca26
Merge branch 'add_pid_to_logging' of git://github.com/mcodd/ansible into devel
12 years ago
Stoned Elipot
df3c4849e9
Also load Jinja2 extensions when processing template from string
12 years ago
Michael DeHaan
4bea9a612f
Don't use "finally" here as it's not 2.4 compliant.
12 years ago
Michael DeHaan
68f711d5ae
teach plugin loader to find modules in subdirectories
12 years ago
Michael DeHaan
391fb98ee2
Allow modules to be categorized, and also sort them when generating the documentation.
12 years ago
Michael DeHaan
a81089231e
Register skipped tasks so we can at least check their changed/not-changed status.
12 years ago
Kahlil (Kal) Hodgson
9f90f0e856
fix arguments to isinstance() in env lookup
12 years ago
Matt Coddington
3b8f69bac8
add pid to log
12 years ago
Stoned Elipot
75b51f79b4
Add module path library/ if it exists in role directory
12 years ago
Michael DeHaan
75cf5c985b
Allow playbook tags to be comma seperated strings as well as lists
12 years ago
Michael DeHaan
bcac289667
Cows don't need to display brackets around strings.
12 years ago
Michael DeHaan
016b04dff1
Merge branch 'roles_dir_search_order' of git://github.com/mcodd/ansible into devel
12 years ago
Brian Coca
caf6bd6ce5
Changed atomic_replace to atomic_move, now ti DOES move atomically in the last
...
step
Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
12 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
12 years ago
Michael DeHaan
553751aee1
Merge branch 'numeric_ids_refactor' of git://github.com/insom/ansible into testing_427
12 years ago
Michael DeHaan
aa55268514
Adds a logfile for ansible playbooks that can be set by the environment or configuration file.
12 years ago
Michael DeHaan
515fbd5a17
Restructure output to prevent rare cases of interlaced I/O in multiprocessing paths.
12 years ago
Matt Coddington
c164609dd6
typo fix
12 years ago
Matt Coddington
c83c534a7d
Search for roles in the roles subdir first. Throw an error when no role .yml files are found.
12 years ago
Michael DeHaan
5af271911b
Fix duplicate handler notification issue in 1.2 devel
12 years ago
Michael DeHaan
224e20ca60
complex_arg templating should be smarter. Make it so!
12 years ago
Aaron Brady
bd226eb826
Refactor user_and_group so it works off of numbers
...
There are various cases where a UID to username to UID mapping breaks
down. One UID can be used by two usernames, or no username. If we
always use UIDs internally, then these ambiguous cases won't be a
problem.
12 years ago
Aaron Brady
d2e457f81f
Accept numeric user and group parameters
12 years ago
Jeroen Hoekx
ac7a632711
Remove leftover debug statement in template code.
12 years ago
Michael DeHaan
21fe750cef
Flush handlers before pre and post task sections change, but not between task and roles, as this seems
...
to be confusing to people (and not usually neccessary)
12 years ago
Michael DeHaan
6fdfbb1a34
Improve variable smushing so it only has to be done in one place. This is related to shlex.split being called
...
on untemplated variables in some rare cases.
12 years ago
Michael DeHaan
af2fb56a10
Changes to allow WANT_JSON to allow JSON to non-Python modules
12 years ago
Stephen Fromm
189b210f5a
Catch exception when logging to systemd journal fails
...
systemd journal will throw IOError exception when journal.sendv() fails.
This catches that and falls back to syslog. See issue #2773 .
12 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
12 years ago
Michael DeHaan
bd0c22868e
With fileglob should return full paths as in 1.1
12 years ago
Michael DeHaan
35e61d8f16
Merge pull request #2688 from dagwieers/module-global
...
New module 'set_fact' to define host facts
12 years ago
Michael DeHaan
be947e5266
Resolve merge conflict
12 years ago
Michael DeHaan
9871707998
If sudoing and the sudo user is not root, the original file is saved as you, therefore delete that file as you.
12 years ago
Michael DeHaan
e12f91799c
Allow args: var to be used to pass a variable in bare, and also templated versions should also DWIM.
12 years ago
Michael DeHaan
6c778acd91
Smush the braces in various places (hey, that rhymes) to avoid undo key=value splitting surprises
...
in new template system.
12 years ago
Michael DeHaan
5cced79cf3
Allow variables to be used raw in with_nested
12 years ago
Michael DeHaan
fbea88b9d9
Allow the environment string to be referenced by a bare variable name like:
...
environment: foo
12 years ago
Michael DeHaan
f9f1d5ee42
Merge pull request #2745 from sfromm/issue2742
...
Fix test so that it is /bin/sh compliant (issue #2742 )
12 years ago
Stephen Fromm
ab3cb4912e
Fix test so that it is /bin/sh compliant (issue #2742 )
...
The old test used syntax that appeared to be bash-specific and did not
work on platforms where /bin/sh did not point to bash. See issue #2742
where copy to solaris hosts failed with the error:
output: {'stdout': '', 'stderr': '/bin/sh: test: argument expected\n',
'rc': 1}
12 years ago
Michael DeHaan
3e0c33c1fa
Empty plays should still gather facts
12 years ago
Michael DeHaan
b08181e9b4
Merge pull request #2731 from stoned/flush_handlers-cleanup
...
handlers must be run once
12 years ago
Michael DeHaan
08324cb5d7
Allow play tagging in context of new meta-tasks.
12 years ago
Stoned Elipot
747c7f0dff
handlers must be run once
...
so remove all occurences of each host from the handlers notified by
lists
12 years ago
Michael DeHaan
32fb6c807c
Allow handlers to run in between pre_tasks, roles, tasks, and post_tasks.
12 years ago
Michael DeHaan
37789a852a
Rename set_up and tear_down to pre_tasks and post_tasks
12 years ago
Michael DeHaan
d7623d1f91
Added a 'set_up' and 'tear_down' which are like tasks, but execute before and after roles.
12 years ago
Michael DeHaan
e6bf01a6b0
Make plugin loader path operations more efficient.
12 years ago