Commit Graph

17876 Commits (b150f18382ca2fa480de5bf48dd54c2e41d9032b)
 

Author SHA1 Message Date
Jonathon Klobucar b150f18382 Fix for serial when percent amount is less than one host (#15396)
Ansible when there was a percentage that was calculated to be less than
1.0 would run all hosts as the value for a rolling update.

The error is due to the fact that Python will round a
float that is under 1.0 to 0, which will trigger the case of
0 hosts. The 0 host case tells ansible to run all hosts.

The fix will see if the percentage calculation after int
conversion is 0 and will else to 1 host.
10 years ago
James Cammarata 24d9e5e0b4 New release v2.0.2.0-1 10 years ago
Robin Roth cd101967d8 fix tests for SLES and CoreOS
* include #15230
10 years ago
James Cammarata 0df4bfe063 Don't override the http status code when successful in urls.py 10 years ago
Matt Martz 9fe10860a6 Don't pass context to urlopen, instead add it to the handlers. Fixes https://github.com/ansible/ansible-modules-core/issues/3437 10 years ago
James Cammarata 26209342a2 New release v2.0.2.0-0.4.rc4 10 years ago
James Cammarata 62e4920896 Also fix intermittent ssh error using pty's for paramiko
Related to #13876
10 years ago
James Cammarata 94a8064485 Don't use -tt for ssh connections when sudoable=False
Due to an apparent race condition while using pty's on a heavily loaded
system, rarely a request to create a temp directory returns an empty
string rather than the newly created path, causing an error. Disabling
forced pty's appears to resolve the issue, so this patch modifies the
mkdtemp remote call not use -tt as we're not escalating privileges and
thus no pty is required.

Fixes #13876
10 years ago
Toshio Kuratomi 94ff39c878 Update changelog for the two new bugfixes 10 years ago
Toshio Kuratomi 7bfa2fef17 Update core submodule ref for uri cherry-pick (dict_header defaults to None instead of dict) 10 years ago
James Cammarata 9bd8fe3f95 Fix free strategy, which was incorrectly using _wait_on_pending_results
Broken in 210cf06d
10 years ago
nitzmahone ec2ee01de3 ensure test_win_user fails on bogus error
We weren't previously checking the error message- it failed as expected, but for the wrong reason.
10 years ago
nitzmahone 50f8c3507b update core submodule ref for win_user bugfixes 10 years ago
nitzmahone 151e02e53d update extras submodule ref for win_updates fixes 10 years ago
James Cammarata 388ee24311 New release v2.0.2.0-0.3.rc3 10 years ago
James Cammarata 7331922c80 Make sure VariableManager has a view of HostVars
Fixes #15261
10 years ago
Toshio Kuratomi 2950e5a75b Update changelog to reflect lxc_container fix 10 years ago
Toshio Kuratomi 9e8843af8d Update submodule refs 10 years ago
James Cammarata 2d6a0d24b8 New release v2.0.2.0-0.2.rc2 10 years ago
James Cammarata 9b7f466116 Updating the test_script integration tests with the version from devel 10 years ago
James Cammarata 4e12168b3c Fix logic error in script action plug related to use of shell.exists 10 years ago
Rene Moser 2f2e2c4611 cloudstack: fix bug, api_secret always None
In case if api args are used, api_secret is None in every cloudstack module.
10 years ago
Malte Krupa 5c7474d96e Add '--skip-tags' to ansible-pull 10 years ago
Brian Coca 4e8da8ed09 moved 'path exists' function to shell
now it will work with powershell/winrm
10 years ago
Toshio Kuratomi 918c11d18d Use _connection instead of _play_context for information about the connection
If we're not delegating then we change _connection into a local
connection midway through the file but we don't change
_play_context.connection (no need to alter that).  When we later check
it in process_remote() we need to know the actual connection, not the
connection that we thought we were going to use at the start of run().
So we have to use _connection.transport in process_remote().  The rest
of the places could use either one (because we have not yet changed to
a local connection) but we go ahead and switch those to
_connection.transport as well to avoid confusion in the future.

Fixes https://github.com/ansible/ansible-modules-core/issues/3136
10 years ago
James Cammarata a432be899e Only combine vars in include_vars if both are mappings
Fixes #15184
10 years ago
James Cammarata d68b463089 New unit tests for #13630 fix 10 years ago
James Cammarata 4b1aad64b8 Take previous jinja2 blocks into account in splitter when we see quotes
Previously, split_args() was not taking print/block/comment depth into account
when splitting things, meaning that if there was a quote character inside an
un-quoted variable (ie. {{ foo | some_filter(' ') }}), it was incorrectly
splitting on the quotes instead of continuing to append to the previous param.

Fixes #13630
10 years ago
Toshio Kuratomi 9ad418ae6d have to always run dwim() on the path to get the full absolute path.
Fixes #14944
10 years ago
James Cammarata 73992224f4 Fix --start-at-task which was broken by the setup task revamp
Fixes #15010
10 years ago
James Cammarata 13cb986873 Removing tests related to filename param (which is not in 2.0) 10 years ago
root e3d14124cb Modified files to use single quotes rather than double for file path. Powershell does not process $ variables in strings that are single quoted. Powershell DOES process $ variables that are in double quoted strings.
Using single quotes enables ansible to  handle file paths that contain folders that start with $. (i.e. C:/Users/$admin/...)
10 years ago
nitzmahone 41892b3fc8 update core submodule ref for win_stat bugfix 10 years ago
James Cammarata b7ccc8cfa1 Fix bugs related to task_includes and dep chain inheritance
* Fix the way task_include fields were created and copied
* Have blocks get_dep_chain() look at task_include's blocks for proper
  dep chain inheritance
* Fix the way task_include fields are copied to prevent a recursive
  degradation

Fixes #14460
10 years ago
Toshio Kuratomi e17ba96589 Should be errors=strict since we don't want to end up matching hosts like '???' 10 years ago
Toshio Kuratomi 2d0badc5ef Fix using non-ascii for inventory hostname patterns with the CLI. 10 years ago
Toshio Kuratomi 69377a2c85 nv_por is needed later in the file
Fixes #14654
10 years ago
James Cammarata d6f86f911c Adding CHANGELOG updates for 2.0.2 rc1 10 years ago
James Cammarata 7e05cc4e74 New release v2.0.2.0-0.1.rc1 10 years ago
James Cammarata c1c6142f4b Updating run_tests.sh from devel 10 years ago
Brian Coca fdc4cc4c4e updated man pages with imssing become option
also moved -K to become password to align with current code
fixes #15123
10 years ago
James Cammarata d470967902 Removing a test causing problems on Py3 which is not critical for 2.0 10 years ago
Toshio Kuratomi 9b9b806439 Handle shlex incompatibility between python2.6 and python3 10 years ago
Matt Martz 29a3d55ef3 Move _split_args from ssh.py to ConnectionBase so we can use it in other connection plugins 10 years ago
James Cammarata c923f614ea Adding acl package to all docker images 10 years ago
James Cammarata 28d43042c3 Submodule pointer update 10 years ago
Matt Martz ea3177e24a Bump core submodules for uri module cherry picks 10 years ago
Matt Martz 199f593ed3 Revert "Cleaning up tests for uri module which doesn't use fetch_url in 2.0"
This reverts commit bc607127ef.
10 years ago
Toshio Kuratomi c928d13618 Fix ansible_sudo_pass inventory variable so that it overrides setting of sudo password from the command line 10 years ago
James Cammarata 52998646e2 Removing invalid test target as it's not in 2.0 yet 10 years ago