【发布时间】:2019-11-20 06:09:40
【问题描述】:
我尝试使用 ansible 下载 Istio。在那里我使用了以下结构。
- name: Download Istio
command: curl https://istio.io/downloadIstio | sh -
- name: Start minikube
command: minikube start
但是当我运行它返回的命令时,
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["curl", "https://istio.io/downloadIstio", "|", "sh", "-"], "delta": "0:00:00.005276", "end": "2019-11-20 11:32:17.749051", "msg": "non-zero return code", "rc": 2, "start": "2019-11-20 11:32:17.743775", "stderr": "curl: option -: is unknown\ncurl: try 'curl --help' or 'curl --manual' for more information", "stderr_lines": ["curl: option -: is unknown", "curl: try 'curl --help' or 'curl --manual' for more information"], "stdout": "", "stdout_lines": []}
如何解决这个问题?
【问题讨论】: