James Cammarata
eab4ce19f3
Making the return parsing in ActionBase generic for reuse
...
Now also correctly parses the return value for the _low_level_execute_command
2016-03-30 12:45:21 -04:00
James Cammarata
4fc0aadd84
Only combine vars in include_vars if both are mappings
...
Fixes #15184
2016-03-30 11:11:26 -04:00
Brian Coca
c09e085480
Merge pull request #14735 from jsok/open_url-netrc
...
Lookup netrc for credentials in open_url
2016-03-30 07:41:56 -07:00
Brian Coca
3f6166d2bf
always return rc
2016-03-30 07:15:51 -07:00
Peter Sprygada
fa6464e807
feature to localize prompt search logic for ios shared module
...
Prompt search logic is now localized to the ios shared module instead
of using the common regexps in the shell module. This resolves a number
of problems with ios modules functioning properly
2016-03-29 22:13:38 -04:00
James Cammarata
2be1726350
Don't remove _raw_params from static include args
2016-03-29 21:40:29 -04:00
nitzmahone
05af5c88ea
fix Mac chown/chmod -R issue, add error checks
...
The changes to chown/chmod were broken on Mac (-R was being appended to the end of the command- OSX requires it before the file list).
A number of base action remote setup commands were also blindly proceeding without checking for success. Added error raises for unrecoverable failure cases.
2016-03-29 07:44:09 -07:00
James Cammarata
f2713f764c
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
2016-03-28 15:43:43 -04:00
Brian Coca
04610106a3
Merge pull request #15173 from mattclay/issue6072
...
Support remote_user in jail connection plugin.
2016-03-28 09:22:00 -07:00
Brian Coca
e9a4526251
allow bypassing executable setting
...
if you set executable to an empty string this avoids passing one to the command constructor
fixes #14813
2016-03-28 08:02:27 -07:00
Rob White
a5b05922ed
Some helper functions to work with boto3
2016-03-28 21:43:31 +11:00
Brian Coca
c303ed24b5
Merge pull request #15159 from sigio/filter-ip4-hex
...
Add ip4_hex filter to convert ip-address to hex notation
2016-03-27 14:14:25 -07:00
Brian Coca
b77bba8f9f
Merge pull request #15175 from wimnat/feature/camel_case_fixing
...
Add function to convert CamelCased key names to snake_names
2016-03-27 14:12:23 -07:00
Brian Coca
363384f517
Merge pull request #15174 from mattclay/conn-msg-host
...
Fix inconsistent/missing host names in messages.
2016-03-27 14:07:13 -07:00
David Wittman
5036d1742c
Fix boolean choices in module docs fragments
...
A few of the docs fragments have the available choices for some params
defined as "BOOLEANS". Because choices accepts a list, it treats
"BOOLEANS" as an iterable and then generates a list composed of each
letter.
Instead, define the available choices as a list of `['yes', 'no']`,
as is common in most other modules.
2016-03-27 15:30:27 -05:00
Toshio Kuratomi
0fffb6c60c
Merge pull request #15163 from ansible/synchronize-connection-vs-play_context
...
Use _connection instead of _play_context for information about the connection
2016-03-27 10:24:46 -07:00
Brian Coca
c6c3fd79c2
Merge pull request #15168 from bcoca/script_exists_fix
...
Script exists fix
2016-03-26 22:08:13 -07:00
Rob White
ef8c1124d0
Add function to convert CamelCased key names to snake_names
2016-03-26 18:46:50 +11:00
James Cammarata
eff89d6290
Merge pull request #15140 from berlic/args-splitter-exception-context
...
Show error context in args splitter exception
2016-03-26 01:02:54 -04:00
Matt Clay
5fdc29e00f
Fix inconsistent/missing host names in messages.
2016-03-25 21:11:53 -07:00
Matt Clay
b60062bdf9
Support remote_user in jail connection plugin.
...
Resolves #6072 .
2016-03-25 20:15:52 -07:00
Brian Coca
28d20dbe53
moved 'path exists' function to shell
...
now it will work with powershell/winrm
2016-03-25 12:56:48 -07:00
Toshio Kuratomi
0cabd133ba
have to always run dwim() on the path to get the full absolute path.
...
Fixes #14944
2016-03-25 12:09:30 -07:00
Toshio Kuratomi
e2f5762232
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
2016-03-25 09:25:19 -07:00
James Cammarata
f4eb9aac24
Fix --start-at-task which was broken by the setup task revamp
...
Fixes #15010
2016-03-25 11:32:19 -04:00
Toshio Kuratomi
2adf8f7ec9
Update submodule refs
2016-03-25 07:42:04 -07:00
Mark Janssen -- Sig-I/O Automatisering
b1015d897d
Re-add accidentaly removed comment
2016-03-25 15:33:35 +01:00
Mark Janssen -- Sig-I/O Automatisering
73766e0816
Add ip4_hex filter to convert ip-address to hex notation
2016-03-25 15:24:48 +01:00
Matt Davis
afc82f6beb
Merge pull request #14930 from mholiv/enable_dollar_as_first_char_in_folder_and_userName
...
Modified files to use single quotes rather than double for file path.…
2016-03-25 07:14:42 +00:00
Toshio Kuratomi
3221be4340
Reverse boilerplate order because from __future__ must be the first code in the file
2016-03-24 20:08:39 -07:00
Brian Coca
1c4cfee415
Merge pull request #15046 from bcoca/script_raw
...
removes python requirement to script
2016-03-24 19:52:06 -07:00
nitzmahone
4241106ad2
fix breakage from new recursive=True arg to chmod
2016-03-24 19:47:43 -07:00
Toshio Kuratomi
80e7fbff75
Add python3 compat boilerplate
2016-03-24 18:04:16 -07:00
Toshio Kuratomi
17e8500202
Don't process the same host multiple times
...
Fixes #14259
2016-03-24 16:43:43 -07:00
Brian Coca
1ebc2fda71
removes python requirement to script
...
mistakenly added when checksum was made to use stat module
fixed assertion in test
2016-03-24 16:17:58 -07:00
Brian Coca
6768f34b31
Merge pull request #15062 from gechr/gc-subset-superset-filters
...
Add `issubset` and `issuperset` tests
2016-03-24 16:17:13 -07:00
Thomas Steinbach
870160b8ed
fixed some breaks after merging ansible/devel
2016-03-24 22:09:41 +01:00
Thomas Steinbach
cd2c140f69
forwarded docker_extra_args to latest upstream/origin/devel
2016-03-24 21:25:38 +01:00
Toshio Kuratomi
228ad3ca39
Should be errors=strict since we don't want to end up matching hosts like '???'
2016-03-24 09:25:37 -07:00
Toshio Kuratomi
13b295f1ee
Fix using non-ascii for inventory hostname patterns with the CLI.
2016-03-24 09:22:35 -07:00
James Cammarata
2c20579a06
Add options to make includes 'static'
...
* Can be configured in the ansible.cfg for tasks/handlers individually
* If an included filename contains no vars or loops, it will be expanded
in-place as if it were marked as static
2016-03-24 10:12:51 -04:00
Toshio Kuratomi
f323eb858e
nv_por is needed later in the file
...
Fixes #14654
2016-03-24 06:58:56 -07:00
Toshio Kuratomi
c4a5cf174b
Merge pull request #15009 from bcoca/py3_compat_fixes
...
Py3 compat fixes
2016-03-24 06:55:29 -07:00
James Cammarata
f427955640
Make default var lookup for tasks follow the dep chain
...
Related to #14296 (@jjshoe's follow-up example on that issue)
2016-03-24 09:51:36 -04:00
Konstantin Suvorov
1c922135a0
show error context in args splitter exception
2016-03-24 16:50:21 +03:00
Brian Coca
5b11494437
python3 compatiblity
...
remove use of basestring
deal with configparser
2016-03-24 06:39:21 -07:00
Toshio Kuratomi
52e9209491
Don't create world-readable module and tempfiles without explicit user permission
2016-03-23 09:52:19 -07:00
Brian Coca
fdb56e4bad
avoid bad path entries
2016-03-23 09:30:48 -07:00
Toshio Kuratomi
728bb7d85e
Update submodule refs
2016-03-23 08:32:42 -07:00
Toshio Kuratomi
917da92e2b
Get rid of extra trailing space in log messages
2016-03-23 08:01:21 -07:00