diff --git a/lib/ansible/modules/extras/packaging/language/composer.py b/lib/ansible/modules/extras/packaging/language/composer.py index 5d8ba563c8b..f788f53dd5c 100644 --- a/lib/ansible/modules/extras/packaging/language/composer.py +++ b/lib/ansible/modules/extras/packaging/language/composer.py @@ -138,6 +138,7 @@ def main(): if module.check_mode: options.add("--dry-run") + del module.params['CHECKMODE'] # Get composer command with fallback to default command = module.params['command']