Commit Graph

21689 Commits (6609ebde27f09a38e73d539a7e14df96ae00288f)
 

Author SHA1 Message Date
Ryan Groten f12d5b01c7 FreeIPA: Add support for nested hostgroups in FreeIPA (#14695) 8 years ago
Ganesh Nalawade f6437f1b6e Fix command typo in integration tests README file (#18539) 8 years ago
Brian Coca 461286f914 added new callback dense 8 years ago
Dag Wieers b7425b59ee Adapt callback functions to changes in 13f3cbaf3b 8 years ago
Dag Wieers 0036108c59 Implement destructor to ensure newline and terminal attributes
Also fixed a typo
8 years ago
Dag Wieers 2a8914e496 Reset VT100 attributes in case we get unexpected output 8 years ago
Dag Wieers cd6f577d91 Rename ansi to the more correct name vt100 8 years ago
Dag Wieers 893dc81b5e Implement our own detailed task output
Also:
- Streamline ANSI calls
- Implement v2_playbook_on_include
8 years ago
Dag Wieers 221a4e7014 Ensure we end with a newline in normal mode 8 years ago
Dag Wieers 7148023f59 Small fix so diff output starts on a new line 8 years ago
Dag Wieers 9a507b1f07 Don't try to be smart with cmd output ! 8 years ago
Dag Wieers 84e0420389 Make everything work magically !
- Support item-loops correctly
- Support notification handlers
8 years ago
Dag Wieers 589953c79b Assorted improvements
- Better switch between *dense* and *default*
- Reimplement C.COLOR* out of necessity (help!)
- Make verbose output more dense (clean up result)
- Implement our own dumper
- Improve delegation support
8 years ago
Dag Wieers 223c0011e0 Assorted fixes
- Implement delegate support
- Implement preliminary handler support
- Implement our own recap/summary (still fails)
8 years ago
Dag Wieers 1bf7e22756 Implement support for itemized tasks 8 years ago
Dag Wieers 14cfb2b230 Preliminary support for items, WIP 8 years ago
Dag Wieers 67c57a9b6b Improve readability 8 years ago
Dag Wieers 326bb24a89 Various improvements, now supports different verbosity levels 8 years ago
Dag Wieers fe6e4f8286 New "dense" callback plugin
The goal for the "dense" output is to only show changes and failures on-screen (the Unix-way).
However, since we still want to have a sense of progress, we use terminal capabilities to display progress.

 - On screen there should only be relevant stuff
    - How far are we ? (during run, last line)
    - What issues occured
    - What changes occured
    - Diff output

 - If verbosity increases, act as default output
   So that users can easily switch to default for troubleshooting

 - Leave previous task output on screen
   - If we would clear the line at the start of a task, there would often
     be no information at all
   - We use the cursor to indicate where in the task we are.
     Output after the prompt is the output of the previous task
   - Use the same color-conventions of Ansible

This is still a work in progress.
It was released to give a glimpse of what would be possible.

The Ansible callback mechanism currently does not have all the functionality we need to do this efficiently.
8 years ago
Scott Butler b5442577ce Docs edit for #18477. 8 years ago
Brano Zarnovican 96ddd29c7e random filter: added optional 'seed' parameter
implements #15621
8 years ago
Toshio Kuratomi ed00741a01 Mcsalgado's change to use shlex.quote instead of pipes.quote (#18534)
* Replace pipes.quote for shlex_quote

* More migration of pipes.quote to shlex_quote

Note that we cannot yet move module code over.  Modules have six-1.4
bundled which does not have shlex_quote.  This shouldn't be a problem as
the function is still importable from pipes.quote.  It's just that this
has become an implementation detail that makes us want to import from
shlex instead.

Once we get rid of the python2.4 dependency we can update to a newer
version of bundled six module-side and then we're free to use
shlex_quote everywhere.
8 years ago
Brian Coca 5d043b65d3 fix for filter fix 8 years ago
Brian Coca 7c960d440f remove rsync path from returned facts 8 years ago
James Cammarata f7fe6dc19c Don't fail on missing vars files for delegated hosts
Fixes #17965
8 years ago
Dag Wieers 1ca4add91c Performance improvement using in-operator on dicts
Just a small cleanup for the existing occurrences.

Using the in-operator for hash lookups is faster than using .keys()
http://stackoverflow.com/questions/29314269/why-do-key-in-dict-and-key-in-dict-keys-have-the-same-output
8 years ago
Matt Martz b79bf14607 Add playbook and packer file for building httptester (#18107) 8 years ago
Adrian Likins 17738e6b73 Fix test_play_context fail with local config. (#17596)
If the current ansible enviroment has a config setup
that doesn't use 'smart' as the configured transport
test_play_context would fail when it assumes the
transport will be 'smart'.
8 years ago
Brian Coca 2b37bd8e67 brought releases up to date 8 years ago
John R Barker fb73e89efe Typo 8 years ago
Ondra Machacek 563017f7ec Add dynamic inventory for oVirt version 4 and RHV version 4 (#17910)
* Add dynamic inventory for oVirt version 4 and RHV version 4

* Add affinity labels and groups to output
8 years ago
Brian Coca 77eba2f1cf better explain task vs play includes (#18516)
* better explain task vs play includes

* clarification of play levels

* Update playbooks_roles.rst

Tweaked for grammar and clarity.

* Update playbooks_roles.rst

Typo fix
8 years ago
Brian Coca bb41a005b3 updated to add tailing msg to missing error 8 years ago
Brian Coca 5129e2fe16 added fail_if_missing shared service function 8 years ago
James Tanner 2d2bb626d4 Port has_key to python3 compatible syntax 8 years ago
Adrian Likins c09060e8ff Fix 'ansible-vault edit' crash on changed nonascii
ansible-vault edit was attempting to decode the file contents
and failing.

Fixes #18428
8 years ago
Brian Coca b339d4cfe2 Clear host errors (#18127)
* document meta: clear_host_errors

* Update playbooks_error_handling.rst

Minor edit
8 years ago
Alex fcca6245d1 Fix small doc issue | playbooks_delegation (#18494)
* Fix small doc issue

* Update playbooks_delegation.rst

Edited for clarity
8 years ago
James Cammarata ca5b361ad8 Reworking iterator logic regarding failed states during always
Previous changes addressed a corner case, which unfortunately introduced
another bug. This patch adds a new flag to the host state (did_rescue) which
is set to true when the rescue portion of a block completes. This flag is
then checked in _check_failed_state() when the fail_state != FAILED_NONE.

This lead to the discovery of another bug - current strategies are not advancing
hosts to ITERATING_COMPLETE after doing a peek at the next task, leaving the
host state in the run_state of the final task. To address this, before gathering
the list of failed hosts in StrategyBase.run(), a final pass through the iterator
for all hosts is done to ensure each host is in its final state. This way, no
strategy derived from StrategyBase has to worry about it and it's handled.

Fixes #17983
8 years ago
Brian Coca afaec3da82 corrected service filtered option to singular 8 years ago
William L. Thomson Jr fe95d71fbd docsite/rst/playbooks_tags.rst: Added section on tag reuse (#17729)
* docsite/rst/playbooks_tags.rst: Added section on tag reuse

* Update playbooks_tags.rst

Minor grammatical clarification.
8 years ago
Brian Coca 387ad9a980 updated changelog with configurable strategy 8 years ago
Gael Pasgrimaud f94100aa87 make default strategy configurable (#18394) 8 years ago
Brian Coca bd70397e24 always template when called from template (#18490)
* Have template action plugin call do_template

Avoids all the magic done for 'inline templating' for ansible plays.
renamed _do_template to do_template in templar to make externally accessible.
fixes #18192

* added backwards compat as per feedback
8 years ago
James Cammarata fcb033b9e4 Add `name` field for Blocks
Fixes #18420
8 years ago
James Cammarata 57cf5e431c Catch loop eval errors and only raise them again if the task is not skipped
This should help on issues like #16222.
8 years ago
Matt Clay 4981feee99 Update submodule refs. 8 years ago
Toshio Kuratomi c22dde615d Add a tool to work with module metadata (#18488)
* Add a tool to work with module metadata

* Don't hardcode async_wrapper
8 years ago
Brian Coca aab80ac353 removed package from squash in examples 8 years ago
Brian Coca c005ae3cd9 removed package from squash actions
fixes https://github.com/ansible/ansible-modules-core/issues/5595
8 years ago