Commit Graph

17851 Commits (a432be899efd1ff6e4f7dc313fe1bfd72d4a663d)
 

Author SHA1 Message Date
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
James Cammarata bc607127ef Cleaning up tests for uri module which doesn't use fetch_url in 2.0 10 years ago
James Cammarata 3511e2dfeb Expanding unit tests for module_utils/basic.py 10 years ago
James Cammarata 6fe0865fe0 Cleaning up tests which don't apply to 2.0 10 years ago
James Cammarata f18dac0d39 Properly use check_raw when using parse_kv in cli/ code
Fixes ansible-modules-core#3070
10 years ago
James Cammarata 4705f22d37 Fixing role param precedence issues
* Make role param resolution follow the role dependency chain, rather
  than using all roles within the play
* Also move params to be merged in after role vars in general, to match
  our variable precedence rules
* Changes to the way var lookup is done in role helper methods for
  get_vars(), get_inherited_vars(), and get_role_params() to make the
  above possible without trampling on previously merged vars

Fixes #14472
Fixes #14475
10 years ago
Matt Clay 9d9c0dfa69 Add missing to_bytes for cmd. 10 years ago
James Cammarata 9d46a16f3f Renaming per-item and retry callbacks 10 years ago
Thomas Steinbach 587baea811 use just 'remote_user' as user for the docker connection 10 years ago
Thomas Steinbach cfae3aae5f use remote_user or become_user in docker connection 10 years ago
Brian Coca f6aca77ebd strip keys recursively 10 years ago
Toshio Kuratomi f620a52555 Add changes necessary for enabling pipelining for local connections 10 years ago
Toshio Kuratomi 819610e797 Enable pipelining for jail connection plugin 10 years ago
Toshio Kuratomi dcd751a767 Small cleanup to use class attribute directly instead of property for transport names 10 years ago
Toshio Kuratomi 14e164d1db Fix saving of tracebacks on module failure 10 years ago
Toshio Kuratomi 61afb71c09 Allow FieldAttribute lists and sets to be set from a comma separated string 10 years ago
Matt Clay 7ddce864a1 Add missing to_bytes on directory path. 10 years ago
James Cammarata 07abd05e38 Reorganizing tox stuff and making py3-specific requirements 10 years ago
Devananda van der Veen f921306b9c Send empty command before recv
On some switches, starting an SSH connection and immediately calling
recv() will result in a connection timeout. The switch requires some
input on the channel before it provides any prompt.

As such, this patch sends an empty command immediately upon connection,
triggering the switch to send a prompt which the shell can then
interpret.

Signed-off-by: Devananda van der Veen <devananda.vdv@gmail.com>
10 years ago
James Cammarata 9402ed1aff Fixing template/assemble action plugins related to tmp dir use/cleanup 10 years ago
Matt Clay 2b64c9b8aa Fix unicode handling in connection plugins. 10 years ago
James Cammarata 96e6a9dca7 Don't always insert failed in the results (again) 10 years ago
Toshio Kuratomi 0f9dd9a74e Fix ssh connection plugin to work with python3 10 years ago
James Cammarata ed570c682f Fixing PlayIterator bugs
* Unit tests exposed a problem where nested blocks did not correctly
  hit rescue/always portions of parent blocks
* Cleaned up logic in PlayIterator
* Unfortunately fixing the above exposed a potential problem in the
  block integration tests, where a failure in an "always" section may
  always lead to a failed state and the termination of execution
  beyond that point, so certain parts of the block integration test
  were disabled.
10 years ago
James Cammarata 6f8dbdd547 Fixing minor logic error in error detection/handling in ssh connection plugin
If max retries were reached, no AnsibleConnectionFailure was raised, which
means potentially in some cases an unreachable error might not be returned
10 years ago
Matt Martz 3ba54becd8 Fix redirects for get_url
* fetch_url shouldn't both accept follow_redirects and support follow_redircts via module.params
* Default follow_redirects for open_url should be 'urllib2'
* Add redirect test for get_url
10 years ago