1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Revert: Ansible Pip module bug bites

This commit is contained in:
Arky 2018-08-27 16:37:45 +07:00
parent 7a6a8bf4c2
commit ede6306692

View file

@ -20,13 +20,21 @@
version: master
when: internet_available
# Ansible Bug: Cannot use 'chdir' with 'extra_args' https://github.com/ansible/ansible/issues/37912 (Patch landed)
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed)
#- name: Download calibre-web dependencies into vendor subdirectory.
# pip:
# requirements: "{{ calibreweb_path }}/requirements.txt"
# chdir: "{{ calibreweb_path }}"
# extra_args: '--target vendor'
# ignore_errors: True
##
# Implmenting this with Ansible command module for now.
- name: Download calibre-web dependencies into vendor subdirectory.
pip:
requirements: "{{ calibreweb_path }}/requirements.txt"
#chdir: "{{ calibreweb_path }}"
extra_args: '--target vendor'
ignore_errors: True
command: pip install --target vendor -r ./requirements.txt
args:
chdir: "{{ calibreweb_path }}"
ignore_errors: True
when: internet_available
- name: Create calibre-web systemd service unit and httpd2 configuration.
template: