Commit Graph

7907 Commits (ea428e716de41ea831789da49e18a0258e4a1c5d)

Author SHA1 Message Date
Brian Coca ea428e716d role now fails if specified file not found
fixes https://github.com/ansible/ansible-modules-core/issues/5166
9 years ago
Brian Coca 432633e4c1 fix for check_mode/async interaction
fixes #18110
9 years ago
Toshio Kuratomi 1d3db8ec5b iUpdate submodule refs 9 years ago
Michael Scherer 4549604cc7 Use six.move for module in module_utils/facts.py 9 years ago
Ryan S. Brown a4660766f7 Update core submodule ref 9 years ago
Toshio Kuratomi 25e25127b9 Update submodule refs 9 years ago
Toshio Kuratomi 5037dc4e69 Make the default Ansible_managed string static so it doesn't interfere with idempotency 9 years ago
Brian Coca 99220a5f6c properly propagate loop vars
fixes #17966
9 years ago
Toshio Kuratomi 001e2b52e0 Update submodule ref for git fix 9 years ago
Brian Coca 01b75f966b fix include_role dynamic path
fixes #17966
9 years ago
Brian Coca 38d0f77a0f include_role now allows duplicates by default
setting is overridable by user
9 years ago
Toshio Kuratomi ea479001f0 Update submodule ref 9 years ago
Toshio Kuratomi 60acfd1e87 Fix ansible-pull on python3
On python3, we can't write bytes directly to sys.stdout.
9 years ago
Toshio Kuratomi 2b105ec7ab Update submodule refs 9 years ago
James Cammarata 5be2a3a9e0 Break out of linear strategy if all hosts are failed and the result is not OK
Fixes #18021
9 years ago
Thilo Uttendorfer 5ece97ae5b Fix call of wrong super class
Added a basic test
9 years ago
Aaron Bieber 3fc1b4da53 Remove -b option from pbrun.
The -b option reads as follows:
` The target job is directed to ignore hangup signals. This is particularly
useful for running the target program in the background.`

If needed, '-b' can be added to become_flags

Squashed commit of the following:

commit f2c9f5c011ae8be610301d597a34bfba1a391e08
Author: Aaron Bieber <aaron@bolddaemon.com>
Date:   Mon Oct 17 10:58:14 2016 -0600

    remove pbrun flags

commit f402679ac177c931ad64bd13306f62512a14fcd6
Author: Aaron Bieber <aaron@bolddaemon.com>
Date:   Fri Oct 14 15:29:29 2016 -0600

    use Password: vs assword: for matching pbrun prompt

commit cd2e90cb65854c4cc5dd8773404e520d40f82765
Author: Aaron Bieber <aaron@bolddaemon.com>
Date:   Fri Oct 14 15:28:58 2016 -0600

    move -b to pbrun_flags
9 years ago
Andrew Gaffney 194c9c41eb Fix search path for relative paths in roles (fixes #17877)
(cherry picked from commit 72f0aaf606)
9 years ago
Brian Coca 9bdde13126 fixes to ansible_search_path
now gets basedir (no need to frontload as dwim already does that)
added comment about basedir to search_path usage to avoid dupes
9 years ago
Brian Coca 7d9d009189 avoid errors when dynamic role 9 years ago
Toshio Kuratomi 4ce0cf57b6 Update submodule refs 9 years ago
Robin Roth 3922328954 Allow unicode inventory filename
Fixes #17932
9 years ago
Bill Nottingham 77e7ae6838 Change <support@ansible.com> - it's being retired. 9 years ago
Toshio Kuratomi f24c10c32b Fixes to handle non-ascii become passwords
Fixes for non-ascii passwords on
* both python2 and python3,
* local and paramiko_ssh (ssh tested working with these changes)
* sudo and su

Fixes #16557
9 years ago
Toshio Kuratomi efc5dac52c Fix become password using non-ascii for local connection
Fixes #18029
9 years ago
Toshio Kuratomi e9e7967dd0 Update extras submodule ref to pull in misc's py3 fixes 9 years ago
Toshio Kuratomi 9a49506677 Update submodule refs 9 years ago
James Cammarata 0d5206f90c Don't mark parent role complete for nested include_role calls
The PlayIterator was written without nested roles in mind, but since
include_role can nest them we need to check to see if we've moved into
a new role which is a child via nesting.

Fixes #18026
9 years ago
Matt Clay 7e2fc88218 Fix docs fragment typo. 9 years ago
Brian Coca ff1e52184f Better error for bad role def 9 years ago
James Cammarata 6bdcb3a392 Make sure free strategy is returning proper TQM constants
Fixes #18023
9 years ago
John R Barker 9183bb6391 docs_fragments formatting and typo improvements (#17981) 9 years ago
Brian Coca b169a61c20 toggle missing handler errors/warnings via config 9 years ago
Michael Scherer f6bcd0f9a1 Add support for distribution_major_version on NetBSD. (#15885) 9 years ago
Peter Sprygada 936bca9fc6 fixes issue when checking if sessions are supported (#18013)
the supports_sessions() call was sending the command as a string instead
of a list which is required when transport is eapi.  This fixes that bug
9 years ago
Peter Sprygada b1666020a9 adds additional exception handling in open() (#18003)
The open() method will now catch a socket.timeout exception and raise
a ShellError.
9 years ago
Peter Sprygada bce31a11c2 minor fix for checking kwargs in get_config() (#18002)
The get_config() method was checking for a nonexistent kwarg that would
cause an exception.  This fixes that problem.
9 years ago
Brian J. Dowling 2be2f35373 Quick ansible-doc fix -- don't run pager if there was an error (no text) 9 years ago
Brian Coca cdb5a222c5 restored 'results' filters
tests do not work the same, restoring old filters to keep backwards compat
tests now only implment the new normalized 'tense'
9 years ago
Peter Sprygada 65ea24f4bb adds log message for successful connection and disconnection (#17993)
The network module will now log a message when it connects to a remote host
successfully and specify the transport used.  It will also log a message
when the module discconnect() method is called.
9 years ago
Peter Sprygada 3badb212fb fixes issue in eos shared module for earlier versions of EOS (#17980)
Earlier versions of EOS that do not support config sessions would
create an exception.  This fix will now check if the device supports
sessions and if it doesn't, it will fall back to not using sessions
9 years ago
Toshio Kuratomi 33f5c25f41 Update submodule refs to pickup firewalld fix 9 years ago
Toshio Kuratomi bf3d546d9a Only dispkay failure to use cryptography at a higher verbosity
Fixes #17982
9 years ago
Toshio Kuratomi e5478a212f Update submodule refs 9 years ago
stephane a32e48555d Correct delegated_host_name check
In fb50698da3 a check for delegated_host_name being defined was added. Make this
check safer as it breaks some playbooks.
9 years ago
Bruno Rocha b06fb2022c Fix unbound method call for JSONEncoder (#17970)
* Fix unbound method call for JSONEncoder

The way it is currently it will lead to unbound method error

```python
In [1]: import json

In [2]: json.JSONEncoder.default('object_here')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-872fdacfda50> in <module>()
----> 1 json.JSONEncoder.default('object_here')

TypeError: unbound method default() must be called with JSONEncoder instance as first argument (got str instance instead)

```

But what is really wanted is to let the json module to raise the "is not serializable error" which demands a bounded instance of `JSONEncoder()`

```python
In [3]: json.JSONEncoder().default('object_here')
---------------------------------------------------------------------------
TypeError: 'object_here' is not JSON serializable 

```


BTW: I think it would try to call `.to_json` of object before raising as it is a common pattern.

* Calling JSONEncoder bounded `default` method using super()
9 years ago
Chris Houseknecht 77de83730d Add warnings when installing container type roles 9 years ago
Toshio Kuratomi 9f6bbf8c2f Switch get_config to use a single value_type parameter to determine type.
This is better API as the booleans could conflict with each other.

If the config value is a string, make sure to return it as a text string
rather than a byte string.
9 years ago
Ryan S. Brown 6444992afb Update submodule ref for devel 9 years ago
Pavlo Shchelokovskyy aa1ec8af17 Make interprocess polling interval configurable (#16560)
As recently there was back-and-forth with this hardcoded value
(0.001 -> 0.01 -> 0.005), obviousely the optimal value for it depends on
Ansible usage scanario and is better to be configurable.

This patch adds a new config option in DEFAULT section,
`internal_poll_interval`, with default of 0.001 corresponding to the
value hardcoded in Ansible v2.1.
This config option is then used instead of hardcoded values where
needed.

Related GH issue: 14219
9 years ago