Tobias Wolf
87648f7bdf
actionable.py: Do not print next task banner in handler callback ( #15698 )
...
Fix actionable callback plugin to not print the banner of the previous
task.
When a handler is executed there is no task banner, so in case it is run,
it will reference the banner from the preceding task.
**Author:** @hvhaugwitz
Test case:
---
- name: actionable filter
hosts: all
handlers:
- name: handler
command: "true"
tasks:
- name: task 1
file: path=/tmp/test state=touch
notify: handler
- name: task 2
file: path=/tmp/test state=absent
- name: task 3
file: path=/tmp/test state=absent
- name: task 4
file: path=/tmp/test state=absent
- name: task 5
file: path=/tmp/test state=absent
- name: task 6
file: path=/tmp/test state=absent
Example output:
BEFORE
------
PLAY [actionable filter] *******************************************************
TASK [task 1] ******************************************************************
changed: [localhost]
TASK [task 2] ******************************************************************
changed: [localhost]
RUNNING HANDLER [handler] ******************************************************
TASK [task 6] ******************************************************************
changed: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=8 changed=3 unreachable=0 failed=0
AFTER
-----
PLAY [actionable filter] *******************************************************
TASK [task 1] ******************************************************************
changed: [localhost]
TASK [task 2] ******************************************************************
changed: [localhost]
RUNNING HANDLER [handler] ******************************************************
changed: [localhost]
PLAY RECAP *********************************************************************
localhost : ok=8 changed=3 unreachable=0 failed=0
9 years ago
Brian Coca
47d58c30e4
another var 'defaulted' in run_tests
9 years ago
James Pic
d72a03deae
Add get_distribution_Archlinux ( #15696 )
9 years ago
Toshio Kuratomi
fff94551a1
Update core submodule ref to fix docs build
9 years ago
Brian Coca
3669ab2456
added defaults for 'optional' vars
9 years ago
Toshio Kuratomi
3f104dcee9
Add a jsonarg type to arg spec ( #15701 )
...
This makes sure that if we get a list or dict that it is turned into
a jsonified string.
9 years ago
Brian Coca
52a714143f
fine tuned shell switches for run_tests.sh
9 years ago
Brian Coca
e0573d3099
make vi the default editor if no EDITOR
...
fixes #15577
9 years ago
James Cammarata
c6a9d20b5c
Merge pull request #15689 from axelspringer/include_fix
...
Restore Ansible 2.0 compatibility for include:
9 years ago
Martin Matuska
5ee38617b9
Treat "static: yes/no" with higher priority than "task_includes_static" in ansible.cfg
9 years ago
Toshio Kuratomi
c42501cfe7
Update submodule refs
9 years ago
Toshio Kuratomi
81019e03fc
Update submodule refs
9 years ago
Martin Matuska
438ed70a43
Restore Ansible 2.0 compatibility for includes
9 years ago
jctanner
eb31faa7f5
Remove the ziploader provided pythonpaths from the env inside run_com… ( #15674 )
...
Remove the ziploader provided pythonpaths from the env inside run_command.
Fixes #15655
9 years ago
James Cammarata
1fc44e4103
Don't fail hosts when using any_errors_fatal when ignoring errors
...
Fixes #15431
9 years ago
Yannig
3901556b35
When var name is the same as var content, try to template it before reporting that var is not defined. ( #13629 )
...
* When var name is the same as var content, try to template it before reporting that var is not defined.
Add asserts in test_var_blending to check this special corner case.
* Fix integration tests when using debug with list or dict.
9 years ago
Toshio Kuratomi
f39ad1f13a
Get rid of logentries.to_unicode.
...
It wasn't doing anything that a literal couldn't do and used
unicode_escape which only understands latin1 (The author of the code
seems to have thought it took an encoding argument but it looks like
that was silently ignored.)
9 years ago
Toshio Kuratomi
aec74b4b65
Fix inventory on python3
9 years ago
Toshio Kuratomi
b8a988e922
bytes when passing to os.path.* and opening the file, text at other times
...
Fixes #15644
9 years ago
Toshio Kuratomi
f61dd8c7fc
Update submodule refs
9 years ago
Toshio Kuratomi
82749cf587
Merge pull request #15677 from abadger/ziploader-cache-lock-dict-fix
...
Fix the mapping of module_name to Locks
9 years ago
Toshio Kuratomi
98feafb411
Fix the mapping of module_name to Locks
...
This was reinitialized every time we forked before so we weren't sharing
the same Locks. It also was not accounting for modules which were
directly invoked by an action plugin instead of going through the
strategy plguins.
9 years ago
Robin Roth
1d6608e84f
Dist version fix for Red Hat and more tests ( #15663 )
...
* add tests for centos6, rhel6 and rhel7
* gen_distribution_version_testcase with python2.6
* remove unused imports
* fix redhat/vmware/... parsing
* add centos7 test case
9 years ago
Brian Coca
6f4f8e6e79
fix typo
9 years ago
Toshio Kuratomi
1b78fd57b1
Merge pull request #15656 from abadger/ziploader-namespace
...
Fix ziploader for the cornercase of ansible invoking ansible.
9 years ago
Matt Davis
ca5080d56b
Merge pull request #15570 from jhawkesworth/regedit_fix_str_compare_tests
...
win_regedit integration test to cover change to allow empty string comparison
9 years ago
Brian Coca
d53c4b8ae7
fixed method signature as per #15668
9 years ago
Toshio Kuratomi
487e6562ca
Fix ziploader for the cornercase of ansible invoking ansible.
...
* Make ziploader's ansible and ansible.module_utils libraries into
namespace packages.
* Move __version__ and __author__ from ansible/__init__ to
ansible/release.py. This is because namespace packages only load one
__init__.py. If that is not the __init__.py with the author and
version info then those won't be available.
* In ziplaoder, move the version ito ANSIBLE_CONSTANTS.
* Change PluginLoader to properly construct the path to the plugins even
when namespace packages are present.
9 years ago
Jason Pettett
4d9648dc15
Added commas in documentation to increase readability ( #15662 )
...
I have added commas in some sentences here because even as a native English speaker, they were somewhat difficult to read.
9 years ago
Chris Houseknecht
361ee9d7a6
Merge pull request #15618 from chouseknecht/docker_doc_frag
...
Docker doc frag
9 years ago
Chris Houseknecht
c49da27be0
Merge pull request #15615 from chouseknecht/docker_guide
...
Adding getting started guide for Docker
9 years ago
Brian Coca
b9a546b703
one less typo
9 years ago
Brian Coca
941564b366
API now connects to server lazily ( #15632 )
...
This should fix most issues with offline operation.
Fixes #14486
Fixes #13991
Alternate to #15363 and #15593
9 years ago
Matt Davis
c6a14567b6
Merge pull request #15646 from dagwieers/patch-19
...
Fix a typo in "inventory_hostnames" plugin name
9 years ago
Dag Wieers
7af47a3886
Rename function bool() as it is a Python built-in function ( #15651 )
9 years ago
Brian Coca
f2980fc565
clarify tags ( #15647 )
...
* clarify tags
* feedback corrections
9 years ago
Toshio Kuratomi
8016f8a638
Update submodule refs
9 years ago
Brian Coca
a3eaf3d78e
table witdh fix
9 years ago
Toshio Kuratomi
48d01f63ca
Merge pull request #15638 from abadger/fix-env-in-ansible_python_interpreter
...
Handle "/usr/bin/env python" style ansible_*interpreter settings.
9 years ago
Brian Coca
37672f9ac3
fixed typo
9 years ago
Dag Wieers
1a50ad34e3
Fix a typo in "inventory_hostnames" plugin name
...
Also make Jinja2 expressions more consistent
9 years ago
Toshio Kuratomi
01cd4fd06f
Handle "/usr/bin/env python" style ansible_*interpreter settings.
...
Fixes #15635
9 years ago
Chris Houseknecht
21f2556662
Update and fix typos in docker inventory docstrings. ( #15616 )
9 years ago
Michael Scherer
47c08c865a
Document that plugins can be shipped in a role ( #15199 )
...
This greatly simplify the distribution of plugin on galaxy.
9 years ago
Brian Coca
60c1155d50
added common azure tags fragment
9 years ago
Toshio Kuratomi
258d6fcddf
Merge pull request #15630 from brettinman/devel
...
Make -q flag totally quiet for env-setup.fish
9 years ago
Brett Inman
1f89a46b52
Make -q flag totally quiet for env-setup.fish
...
The first echo and setup.py steps are not quiet and result in output that is annoying if your Fish is configured to source the file.
9 years ago
Toshio Kuratomi
d652b2edc0
Fix for unittests on python2.6 or less
9 years ago
Toshio Kuratomi
2762f12f7f
Remove the duplicate modstyle parameter
9 years ago
Robin Roth
12f7f50f31
extend zypper integration tests ( #15596 )
...
* extend zypper integration tests
* fix caching issue of local RPMS on openSUSE 42.1 Leap
* add tests for simultaneous install/remove via prefixes +-
* test fail cases (rm patch or URL)
* test patch install (succes, unchanged second run, fail on wrong name)
* add test for pattern install
9 years ago