Daniel Hokka Zakrisson
47082a9171
Add $LOOKUP(<lookup plugin>,<data>) as a templating option
...
Also moves file and pipe to lookup_plugins.
13 years ago
Dag Wieers
dfa1e8b0dc
Bail out if an action is not a string
...
Since YAML allows anything, we should enforce that actions are strings.
This closes #1419 .
13 years ago
Daniel Hokka Zakrisson
e05e514861
Create a plugin loader system
13 years ago
Michael DeHaan
c0747b7baa
pep8 fixes
13 years ago
Michael DeHaan
21258dcc66
Added 'when' as a shortcut around only_if.
13 years ago
Michael DeHaan
a768e9a9ff
Fix for sudo defaults if sudo is passed in via --extra-vars
13 years ago
Daniel Hokka Zakrisson
026e251b94
Make with_items a lookup plugin
13 years ago
Michael DeHaan
c5d2f6b0d3
implement lookup plugins for arbitrary enumeration over arbitrary things. See the mailing list for some cool examples.
13 years ago
Michael DeHaan
271db7bddb
Merge pull request #1308 from abondis/named_action
...
named actions + modules list in utils.py
13 years ago
Aurélien Bondis
6d183959ba
#1303 : add sudo option to tasks
13 years ago
Aurélien Bondis
2063e10c00
named actions + modules list in utils.py
13 years ago
Michael DeHaan
f3d7294690
Test for directory existance, fix exception catching granularity
13 years ago
Aurélien Bondis
e07bfd9ef8
playbook/tasks: allow to use a module's name instead of action:
13 years ago
Jonathan Palley
faed650bb1
allow vars in delegate_to
13 years ago
Jonathan Palley
620accf117
make delegate_to localhost act like local_action
13 years ago
Daniel Hokka Zakrisson
cc948f339c
Allow including files through variables
...
$FILE{file} will be replaced with the contents of "file"
$PIPE{cat file} will be replaced with the output of "cat file"
13 years ago
Michael DeHaan
b8c4bb9e6e
Revert "Allow including files through variables"
...
This reverts commit bf47bb4753 .
Conflicts:
lib/ansible/utils.py
test/TestUtils.py
13 years ago
Michael DeHaan
544a8e44d7
Merge pull request #1053 from dhozac/varreplace-include
...
Allow including files through variables
13 years ago
Daniel Hokka Zakrisson
dd11b01350
Keep delegate_to so all auxiliary logic based on that works
13 years ago
Daniel Hokka Zakrisson
5bb0f6908b
Allow transport on tasks, and use it for local_action
13 years ago
Daniel Hokka Zakrisson
bf47bb4753
Allow including files through variables
...
$FILE{file} will be replaced with the contents of "file"
$PIPE{cat file} will be replaced with the output of "cat file"
13 years ago
Tim Bielawa
4121109665
Local actions, they're like aliases for actions with localhost
...
delegates.
Closes #905
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
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
faed4b5a33
whitespace + remove deprecated YAML parser (migration script lives in examples/scripts and warning was added
...
in 0.6 release)
14 years ago
Michael DeHaan
b76efa39be
Fix some templating issues, needs testing with anti-unicode safeguard around shlex.split
14 years ago
Michael DeHaan
c192d8a2b2
Revert "Apply templating to module arguments in playbook"
...
Breaks copy module by introducing unicodeness, among other things
This reverts commit 4fedb17e38 .
14 years ago
Michael DeHaan
38ed7ca7df
Merge pull request #759 from lorin/error-feedback
...
If task action is invalid, output the name in error message
14 years ago
Lorin Hochstein
aed6ee7f74
Report only name in task error, all on one line
14 years ago
Lorin Hochstein
fa9fe9d246
If task action is invalid, output the name and action.
14 years ago
Will Thames
4fedb17e38
Apply templating to module arguments in playbook
...
Module arguments should have variable substitution applied
Also, replacing task.action with the templated task.name seems wrong
14 years ago
Petros Moisiadis
5f4bf813b1
added an 'ignore_errors' option to tasks
...
Failed tasks with ignore_errors=True, allow the remaining tasks in the
play to be executed as if no failure happened. A failure notice is still
written to the output as well as an '...ignoring' message.
14 years ago
Michael DeHaan
8bb8314d10
Inject vars need to pushed further up to make with_items work as desired.
14 years ago
Michael DeHaan
3c2cbae68e
Plays and tasks now yell when they see parameters they do not understand, so that typos like 'var' for 'vars'
...
don't result in people having to ask questions about what is wrong with their playbook
14 years ago
Michael DeHaan
1754de3335
Misc code cleanup, mostly whitespace preferences, removing unused imports, plus a few fixes here and there.
14 years ago
Michael DeHaan
61d8e2e7c7
with_items should be processed inside the task class, also make first_available_file
...
and with_items incompatible. Most cases that would need this could be solved
with vars_files.
14 years ago
Michael DeHaan
969c3feb13
Allow include statements from plays to specify tags (see tags.yml example file).
...
Also be smart and don't run a play at all if no tasks in the play match any of the tags specified. This includes not running the setup actions!
14 years ago
Michael DeHaan
83f23ef861
Basic support for tagging tasks and selecting a subset of tasks to run with --tags.
14 years ago
Michael DeHaan
4664e354c3
Get with_items to work with new play/task architecture.
14 years ago
Michael DeHaan
ecb944892d
Tweaks on previous refactoring of playbook, version bump a 0.4 reference, remove some debug, etc
14 years ago
Michael DeHaan
b9b53d1941
Playbook refactoring -- work in progress.
14 years ago