community.general/lib/ansible
Sam Doran ea3638b580 Add proper check mode support to the script module (#31852)
* Do not run script in check mode

Fixes #30676

* Reformat script integration test

* Add integration tests for check mode of script module

* Fix name on test

* Cleanup temp file

* win_script integration test syntaxt changes

* Add check mode tests for win_script

* Use proper variable in test

* Fail if source file does not exist

* Verify script is accessible and don't copy in check mode

Use shlex to properly split shell arguments, though a path with spaces in it still needs to be quoted in the playbook.
Add note to docs describing such.
Improve error message if file is not found indicating there may be a space in the path.

* Properly encode path now that path is split using shlex

* Allow for spaces in both path and script name

* Add unicode character test to Linux script tests

* Add Linux test for space in path to script
2017-11-13 15:33:44 -08:00
..
cli Enable autoloading of inventory plugins (#32709) 2017-11-09 19:38:34 -05:00
compat Create a short license for PSF and MIT. (#32212) 2017-11-06 10:25:30 -08:00
config Enable autoloading of inventory plugins (#32709) 2017-11-09 19:38:34 -05:00
errors Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
executor Connection plugins network_cli and netconf (#32521) 2017-11-09 15:04:40 -05:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory Avoid re.split as it's a bit less efficient and a bit harder to read. 2017-11-10 17:27:05 -08:00
module_utils fixes asa action plugin for connection=local (#32827) 2017-11-13 14:24:13 -05:00
modules Add proper check mode support to the script module (#31852) 2017-11-13 15:33:44 -08:00
parsing Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
playbook Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
plugins Add proper check mode support to the script module (#31852) 2017-11-13 15:33:44 -08:00
template Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
utils Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
vars Remove uses of assert in production code (#32079) 2017-11-13 11:51:18 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py updated chlog, moved missed comment 2017-11-09 09:59:43 -05:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00