diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-12-14 12:52:18 -0500 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-02-06 19:32:00 -0500 |
commit | c86a17b7a003ac22c173cfa832ed2368e15015e6 (patch) | |
tree | 6fa554f98942214147b12fe82cae2c610f9ba26f /lib/ansible/plugins/action/unarchive.py | |
parent | 22db51f15c7bbffe2b76f9cdd59909ce39626d6c (diff) | |
download | ansible-c86a17b7a003ac22c173cfa832ed2368e15015e6.tar.gz |
refactoring async
- centralized skipping
- also fixed module name broken by previous refactor
- let action modules handle async processing
- moved async into base action class's module exec
- action plugins can now run final action as async
- actually skip copy if base skips
- fixed normal for new paths
- ensure internal stat is never async
- default poll to 10 as per docs
- added hint for callback fix on poll
- restructured late tmp, now a pipeline query
- moving action handler to connection as networking does
- fixed network assumption invocation is always passed
- centralized key cleanup, normalized internal var
- _supress_tmpdir_delete now in _ansible_xxx and gets removed from results
- delay internal key removal till after we use em
- nicer tmp removing, using existing methods
- moved cleanup tmp flag to mking tmp func
Diffstat (limited to 'lib/ansible/plugins/action/unarchive.py')
-rw-r--r-- | lib/ansible/plugins/action/unarchive.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/plugins/action/unarchive.py b/lib/ansible/plugins/action/unarchive.py index 8b6aaf94b1..001f63cc56 100644 --- a/lib/ansible/plugins/action/unarchive.py +++ b/lib/ansible/plugins/action/unarchive.py @@ -59,10 +59,8 @@ class ActionModule(ActionBase): result['msg'] = "src (or content) and dest are required" return result - remote_user = self._play_context.remote_user if not tmp: - tmp = self._make_tmp_path(remote_user) - self._cleanup_remote_tmp = True + tmp = self._make_tmp_path() if creates: # do not run the command if the line contains creates=filename @@ -110,7 +108,7 @@ class ActionModule(ActionBase): if not remote_src: # fix file permissions when the copy is done as a different user - self._fixup_perms2((tmp, tmp_src), remote_user) + self._fixup_perms2((tmp, tmp_src)) # Build temporary module_args. new_module_args = self._task.args.copy() new_module_args.update( |