openSUSE / ansible-obs

Some playbooks to operate OBS
1 stars 10 forks source link

Ansible-obs fails to get the deployed commit after a successful deployment #33

Closed danidoni closed 3 years ago

danidoni commented 3 years ago

After a successful deployment, ansible-obs tries to show the deployed commit to the console, but fails with:

TASK [get obs deployed version] **************************************************************************************************************************************************************************************************************
task path: /home/ddonisa/ansible-obs/includes/github-deployment.yml:2
fatal: [obs]: FAILED! => {"changed": true, "cmd": "bin/obs_deploy dv | cut -f2 -d':' | xargs", "delta": "0:00:00.516870", "end": "2021-08-30 11:17:56.494376", "msg": "non-zero return code", "rc": 127, "start": "2021-08-30 11:17:55.977506", "stderr": "/bin/sh: line 1: xargs: command not found", "stderr_lines": ["/bin/sh: line 1: xargs: command not found"], "stdout": "", "stdout_lines": []}

The required binary xargs does not exist in the dockerized container:

ddonisa@ba522cbacbad:~/ansible-obs> xargs
bash: xargs: command not found
dmarcoux commented 3 years ago

Addressed in #36