ansible-cloudflared icon indicating copy to clipboard operation
ansible-cloudflared copied to clipboard

Upgrade task fails when cloudflared is updated

Open philipsd6 opened this issue 4 years ago • 0 comments

This line says the task changes when the rc code is 64: https://github.com/bendews/ansible-cloudflared/blob/4d7f43d9aa8aba268129dd6e8e8dece57614c261/tasks/main.yml#L30

However, I see:

TASK [bendews.cloudflared : command] **************************************************************************************************
fatal: [rpi1]: FAILED! => {"changed": false, "cmd": ["cloudflared", "update"], "delta": "0:00:08.572855", "end": "2021-02-22 13:10:43.564737", "msg": "non-zero return code", "rc": 11, "start": "2021-02-22 13:10:34.991882", "stderr": "\u001b[36mINFO\u001b[0m[2021-02-22T13:10:43-05:00] cloudflared has been updated to version 2021.2.2\ncloudflared has been updated to version 2021.2.2", "stderr_lines": ["\u001b[36mINFO\u001b[0m[2021-02-22T13:10:43-05:00] cloudflared has been updated to version 2021.2.2", "cloudflared has been updated to version 2021.2.2"], "stdout": "", "stdout_lines": []}
``

...which shows a) cloudflared is updated with an rc code of 11, and b) this is a failed task because the rc code is not zero.

philipsd6 avatar Feb 22 '21 18:02 philipsd6