TASK [yarn : Install "imagemin" node.js package globally.] **************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: need more than 0 values to unpack
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/Users/ahmed/.ansible/tmp/ansible-tmp-1586467962.020019-255476546078701/AnsiballZ_yarn.py\", line 102, in <module>\n _ansiballz_main()\n File \"/Users/ahmed/.ansible/tmp/ansible-tmp-1586467962.020019-255476546078701/AnsiballZ_yarn.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/Users/ahmed/.ansible/tmp/ansible-tmp-1586467962.020019-255476546078701/AnsiballZ_yarn.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.packaging.language.yarn', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 188, in run_module\n fname, loader, pkg_name)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/var/folders/x3/_cx1vn0173b5s54dhcwmrgv80000gn/T/ansible_yarn_payload_1Yqsvo/ansible_yarn_payload.zip/ansible/modules/packaging/language/yarn.py\", line 389, in <module>\n File \"/var/folders/x3/_cx1vn0173b5s54dhcwmrgv80000gn/T/ansible_yarn_payload_1Yqsvo/ansible_yarn_payload.zip/ansible/modules/packaging/language/yarn.py\", line 362, in main\nValueError: need more than 0 values to unpack\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
SUMMARY
yarn module throws ValueError: need more than 0 values to unpack when running with
--check
flag.ISSUE TYPE
COMPONENT NAME
yarn
moduleANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
macOS 10.15.4
STEPS TO REPRODUCE
Running the example from the documentation https://docs.ansible.com/ansible/latest/modules/yarn_module.html#examples
Reported on https://github.com/ansible/ansible/issues/68827 by @ahmedelgabri
EXPECTED RESULTS
Return null out and err values
ACTUAL RESULTS
Error when running runpy on check mode