jctanner
781de83762
When walking through module directories, always follow symlinks. ( #15784 )
...
Fixes #15783
2016-05-09 14:24:39 -04:00
Toshio Kuratomi
409bfe4d0f
Strip leading and trailing whitespace for json arg types
2016-05-09 08:14:50 -07:00
Robin Roth
30e5999812
Fix distribution_facts missing on BSD ( #15780 )
...
The previous fix in #15773 only solved MacOSX, but left other BSDs broken
fixes #15768
2016-05-09 10:55:28 -04:00
Pomin Wu
78808fc4cc
Fixed ansible_os_family
variable on OS X ( #15768 ) ( #15773 )
...
Fixed `ansible_os_family` variable on OS X
2016-05-09 09:59:26 -04:00
nitzmahone
fca5ba153e
bump extras submodule ref
2016-05-06 09:49:33 -07:00
Toshio Kuratomi
0a5831e654
Update submodule refs
2016-05-06 08:13:51 -07:00
Jiri Tyr
589f6d25bb
Updating VCA module documentation ( #14368 )
2016-05-06 09:53:43 -04:00
James Cammarata
09c90f7f2f
Fixing bugs in strategies
...
* Don't filter hosts remaining based on their failed state. Instead rely
on the PlayIterator to return None/ITERATING_COMPLETE when the host is
failed.
* In the free strategy, make sure we wait outside the host loop for all
pending results to be processed.
* Use the internal _set_failed_state() instead of manually setting things
when a failed child state is hit
Fixes #15623
2016-05-06 09:22:11 -04:00
nitzmahone
7708948d7d
bump submodule refs
2016-05-05 17:05:36 -07:00
nitzmahone
133395db30
add jimi-c's unit test for squashed skip results, tweaked is_skipped() logic to pass
2016-05-05 15:29:10 -07:00
Andrew Taumoefolau
85868e07a9
Don't assume a task with non-dict loop results has been skipped.
...
This changeset addresses the issue reported here:
ansible/ansible-modules-core#1765
The yum module (at least) includes its task results as strings, rather than
dicts, and the code this changeset replaces assumed that in that instance the
task was skipped. The updated behaviour assumes that the task has been
skipped only if:
* results exist, and
* all results are dicts that include a truthy skipped value
2016-05-05 15:29:10 -07:00
Brian Coca
3a6ca0b4a6
made ansible-doc complain on missing 'requried'
2016-05-05 17:02:39 -04:00
Brian Coca
fb7940fc50
check that variable first
...
before using string methods to check for magic interpreter var
2016-05-05 11:14:11 -04:00
camradal
be87cd8c26
Fix logging into vCloud Director and expose verify_certs argument ( #15533 )
2016-05-05 09:48:54 -04:00
Robin Roth
56ba10365c
better fix for arch version detection ( #15705 )
...
* better fix for arch version detection
fixes #15696
* be extra safe about tracebacks in facts.py
* add comments to explain the setup
* make allowempty more conservative, ignore file content
* wrap function call in try/except
* should never happen, but if it happens the bug should be distribtion=N/A and not a traceback
2016-05-04 12:32:08 -07:00
nitzmahone
6373f2b045
error message cleanup
2016-05-04 09:43:41 -07:00
Toshio Kuratomi
ae9ddf0c1c
Submodule updates to fix documentation
2016-05-03 10:12:02 -07:00
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
2016-05-03 11:25:46 -04:00
James Pic
d72a03deae
Add get_distribution_Archlinux ( #15696 )
2016-05-03 08:20:08 -07:00
Toshio Kuratomi
fff94551a1
Update core submodule ref to fix docs build
2016-05-03 07:53:27 -07:00
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.
2016-05-03 10:21:00 -04:00
Brian Coca
e0573d3099
make vi the default editor if no EDITOR
...
fixes #15577
2016-05-03 09:39:19 -04:00
James Cammarata
c6a9d20b5c
Merge pull request #15689 from axelspringer/include_fix
...
Restore Ansible 2.0 compatibility for include:
2016-05-03 09:18:13 -04:00
Martin Matuska
5ee38617b9
Treat "static: yes/no" with higher priority than "task_includes_static" in ansible.cfg
2016-05-03 12:15:13 +02:00
Toshio Kuratomi
c42501cfe7
Update submodule refs
2016-05-02 11:31:06 -07:00
Toshio Kuratomi
81019e03fc
Update submodule refs
2016-05-02 10:05:02 -07:00
Martin Matuska
438ed70a43
Restore Ansible 2.0 compatibility for includes
2016-05-02 17:50:42 +02:00
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
2016-05-02 11:29:35 -04:00
James Cammarata
1fc44e4103
Don't fail hosts when using any_errors_fatal when ignoring errors
...
Fixes #15431
2016-05-01 12:40:09 -04:00
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.
2016-05-01 06:42:09 -07:00
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.)
2016-04-30 07:45:51 -07:00
Toshio Kuratomi
aec74b4b65
Fix inventory on python3
2016-04-30 07:28:41 -07:00
Toshio Kuratomi
b8a988e922
bytes when passing to os.path.* and opening the file, text at other times
...
Fixes #15644
2016-04-29 22:20:22 -07:00
Toshio Kuratomi
f61dd8c7fc
Update submodule refs
2016-04-29 22:00:57 -07:00
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.
2016-04-29 20:47:51 -07:00
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
2016-04-29 13:18:50 -07:00
Brian Coca
6f4f8e6e79
fix typo
2016-04-29 15:01:25 -04:00
Toshio Kuratomi
1b78fd57b1
Merge pull request #15656 from abadger/ziploader-namespace
...
Fix ziploader for the cornercase of ansible invoking ansible.
2016-04-29 11:12:11 -07:00
Brian Coca
d53c4b8ae7
fixed method signature as per #15668
2016-04-29 13:13:01 -04:00
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.
2016-04-29 08:47:49 -07:00
Chris Houseknecht
361ee9d7a6
Merge pull request #15618 from chouseknecht/docker_doc_frag
...
Docker doc frag
2016-04-29 01:27:57 -04:00
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
2016-04-28 23:28:02 -04:00
Dag Wieers
7af47a3886
Rename function bool() as it is a Python built-in function ( #15651 )
2016-04-28 14:39:35 -04:00
Toshio Kuratomi
8016f8a638
Update submodule refs
2016-04-28 07:21:05 -07:00
Toshio Kuratomi
01cd4fd06f
Handle "/usr/bin/env python" style ansible_*interpreter settings.
...
Fixes #15635
2016-04-27 20:22:31 -07:00
Brian Coca
60c1155d50
added common azure tags fragment
2016-04-27 16:55:41 -04:00
Toshio Kuratomi
13532027ff
Update submodules ref
2016-04-27 07:17:32 -07:00
Toshio Kuratomi
2583f2774d
Some beginning python3 porting for urls.py
2016-04-27 07:15:51 -07:00
Toshio Kuratomi
c2efb0b7e6
Update submodule refs
2016-04-27 06:49:17 -07:00
Toshio Kuratomi
a0f397eb6c
Fix traceback in fetch_urls when status code is in info as well as the error.
2016-04-27 06:49:12 -07:00