community.general/lib/ansible
chriskarel 991918e9d2 Fix idempotency for Unix permissions in zip files. (#24580)
* Fix idempotency for Unix permissions in zip files.

This fix prevents the unarchive module from reporting 'changed' when a zipfile contains items with Unix permissions that differ from the system default.

* Update zip unarchive tests.

Additional tests for the unarchive module with zip files:
- Test file in zip archive with non-default permissions
- Test file added to zip archive with Windows permissions

* Additional fix for mixed win/unix archives.

  Turns out my original fix fails under some mixed archives, as setting the umask to zero can be applied to those files.  This creates a per-file umask variable, so a mix of permission types don't cause problems.

* CI Checks

CI checks for archives with:
* non default Unix permissions
* Windows permissions


* Workaround for BSD differences.

Using Zipinfo due to lack of support in BSD unzip.
Permissions handling is also different in BSD -- always applies UMASK to file permissions.

* Added checks for creating directories and SSH keys for existing users.
2017-08-11 12:36:46 -07:00
..
cli Add prompt formats for 2.3 compat ask-vault-pass (#27974) 2017-08-10 09:34:16 -04:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Add back support for vault_password_file config var (#27597) 2017-08-01 18:07:33 -04:00
errors correct, cleanup & simplify dwim stack (#25956) 2017-07-03 15:27:53 -04:00
executor Fix for ansiballz filenames conflicting with python stdlib modules 2017-08-01 15:20:35 -07:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory ensure all groups inherit from 'all' 2017-07-13 18:38:39 -04:00
module_utils Fixes for broken asa_config module (#27218) 2017-08-11 11:42:42 -04:00
modules Fix idempotency for Unix permissions in zip files. (#24580) 2017-08-11 12:36:46 -07:00
parsing Better vault pass prompt behav on EOF, more unit tests (#27981) 2017-08-10 09:34:57 -04:00
playbook validate include_role args (#28077) 2017-08-11 15:21:12 -04:00
plugins fix issue with trailing white space when logging into asa (#28073) 2017-08-11 12:30:57 -04:00
template template: fix KeyError: 'undefined variable: 0 (#27972) 2017-08-09 18:50:53 -04:00
utils [cloud] ovirt: add headers param to auth (#27881) 2017-08-11 09:31:20 -04:00
vars Remove wildcard imports 2017-07-28 22:10:17 -07:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Fix undefined variables, basestring usage, and some associated python3 issues 2017-07-25 15:58:23 -07:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00