X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=playbooks%2Froles%2Fpackage%2Ftasks%2Fpip.yaml;h=d403ea7f666c9b6ddc2175ec2bbe2d1e9942af96;hp=a4a4642546926138eb61e0d7fe92396de18dd29c;hb=663609bac440e568ae47e40fb3d295510c0c2c47;hpb=59b8d3db83f0dbeb41ebac7a1ad076797cc6d100 diff --git a/playbooks/roles/package/tasks/pip.yaml b/playbooks/roles/package/tasks/pip.yaml index a4a4642..d403ea7 100644 --- a/playbooks/roles/package/tasks/pip.yaml +++ b/playbooks/roles/package/tasks/pip.yaml @@ -25,12 +25,20 @@ - absent - directory -- name: Download pip packages using requirements.txt file +# NOTE (fdegir): This could perhaps be moved to a different playbook or to engine core +# itself so the collection of core packages are common across stacks +- name: Download engine core pip packages using requirements.txt file command: "pip download -r {{ engine_path }}/requirements.txt --no-cache" changed_when: false args: chdir: "{{ pip_folder }}" +- name: Download stack pip packages using requirements.txt file + command: "pip download -r {{ engine_path }}/engine/stack/{{ stack_type }}/requirements.txt --no-cache" + changed_when: false + args: + chdir: "{{ pip_folder }}" + - name: Copy pip.conf template: src: pip.conf.j2