source module compression setting directly from config (#80647)

* source module compression setting directly from config

no need to proxy via play_context, which can fall out of date w/o constant variable updates.
pull/80653/head
Brian Coca 2 years ago committed by GitHub
parent 4d25e3d54f
commit 0c63b9622e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- module compression is now sourced directly via config, bypassing play_context possibly stale values.

@ -296,7 +296,8 @@ class ActionBase(ABC):
try:
(module_data, module_style, module_shebang) = modify_module(module_name, module_path, module_args, self._templar,
task_vars=use_vars,
module_compression=self._play_context.module_compression,
module_compression=C.config.get_config_value('DEFAULT_MODULE_COMPRESSION',
variables=task_vars),
async_timeout=self._task.async_val,
environment=final_environment,
remote_is_local=bool(getattr(self._connection, '_remote_is_local', False)),

Loading…
Cancel
Save