diff --git a/roles/calibre-web/tasks/main.yml b/roles/calibre-web/tasks/main.yml index 7e662e974..08f6d5e2c 100644 --- a/roles/calibre-web/tasks/main.yml +++ b/roles/calibre-web/tasks/main.yml @@ -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: