名称:为Airflow创建一个虚拟文件夹 外壳:python3.6 -m venv {{目录}}
- name: Active virtual Environment
shell: chdir={{ directory }} && source bin/activate
TASK [Active virtual Environment] **************************************************************
fatal: [host2.domain.local]: FAILED! => {"changed": true, "cmd": "&& source bin/activate", "delta": "0:00:00.003346", "end": "2019-01-30 20:56:13.119072", "msg": "non-zero return code", "rc": 1, "start": "2019-01-30 20:56:13.115726", "stderr": "/bin/sh: -c: line 0: syntax error near unexpected token `&&'\n/bin/sh: -c: line 0: `&& source bin/activate'", "stderr_lines": ["/bin/sh: -c: line 0: syntax error near unexpected token `&&'", "/bin/sh: -c: line 0: `&& source bin/activate'"], "stdout": "", "stdout_lines": []}
答案 0 :(得分:0)
/api/song.py
尝试