Distribute dependencies
[infra/stack/kubernetes.git] / playbooks / roles / package / tasks / pip.yaml
index a4a4642546926138eb61e0d7fe92396de18dd29c..d403ea7f666c9b6ddc2175ec2bbe2d1e9942af96 100644 (file)
     - 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