什么是Ansible pip 模块等于 'pip install --target vendor' ?"virtualenv="是实现这一目标的正确选择吗?谢谢!
- name: Download calibre-web dependencies into vendor subdirectory.
command: pip install --target vendor -r ./requirements.txt
args:
chdir: /install/directory
您可以使用 pip 模块的extra_args
选项。请参考下面的示例
- name: install to vendor directory
pip:
requirements: requirements.txt
chdir: /install/directory
extra_args: --target vendor