Skip to content

Commit 6dd478b

Browse files
committed
This code was creating cache inside /export/home/delphx/.cache/pip/http-v2, disabling cache is the cleaner approach here- Change #3
1 parent a35bbd5 commit 6dd478b

File tree

2 files changed

+10
-1
lines changed
  • bootstrap/roles/appliance-build.bootstrap/tasks
  • live-build/misc/ansible-roles/appliance-build.minimal-internal/tasks

2 files changed

+10
-1
lines changed

bootstrap/roles/appliance-build.bootstrap/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
PIP_NO_CACHE_DIR: "yes"
9393
become: true
9494

95-
- name: Remove pip cache directory
95+
- name: Clean up pip cache directory
9696
ansible.builtin.file:
9797
path: "/export/home/delphix/.cache"
9898
state: absent

live-build/misc/ansible-roles/appliance-build.minimal-internal/tasks/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
ansible.builtin.pip:
3535
name: awscli
3636
break_system_packages: true
37+
extra_args: "--no-cache-dir"
38+
environment:
39+
PIP_NO_CACHE_DIR: "yes"
40+
become: true
41+
42+
- name: Clean up pip cache directory
43+
ansible.builtin.file:
44+
path: "/export/home/delphix/.cache"
45+
state: absent
3746
become: true
3847

3948
# Add /usr/local/bin to the PATH (awscli needs it)

0 commit comments

Comments
 (0)