idiv-biodiversity / ansible-role-lmod

deploys Lmod
https://galaxy.ansible.com/idiv_biodiversity/lmod
MIT License
14 stars 13 forks source link

tasks/deps-debian.yml: change 'raw' to 'command' #9

Closed bcdarwin closed 2 years ago

bcdarwin commented 2 years ago

Fixes an issue whereby use of raw seemingly causes linebreaks to prematurely terminate the command on my system producing the following error (but it's recommended to avoid use of raw anyway unless necessary):

fatal: [myhostname]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 127, "stderr": "Shared connection to myhostname closed.\r\n", "stderr_lines": ["Shared connection to myhostname closed."], "stdout": "\u001b[0;1;31mCommand line to execute required.\u001b[0m\r\n/bin/sh: 2: --property=After=apt-daily.service apt-daily-upgrade.service: not found\r\n/bin/sh: 3: --wait: not found\r\n", "stdout_lines": ["\u001b[0;1;31mCommand line to execute required.\u001b[0m", "/bin/sh: 2: --property=After=apt-daily.service apt-daily-upgrade.service: not found", "/bin/sh: 3: --wait: not found"]}
brisk022 commented 2 years ago

I have the same problem. Please accept this pull request.

wookietreiber commented 2 years ago

Sorry about the delay, just merged manually while also updating the actions. Released as v2.4.3.