Skip to content

Commit e533769

Browse files
committed
adding the no-cache for pip installation
1 parent 281c15c commit e533769

File tree

2 files changed

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

2 files changed

+6
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
ansible.builtin.pip:
8888
name: awscli
8989
break_system_packages: true
90+
extra_args: "--no-cache-dir"
91+
environment:
92+
PIP_NO_CACHE_DIR: "yes"
9093
become: true
9194

9295
- name: Load ZFS kernel module.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
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"
3740
become: true
3841

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

0 commit comments

Comments
 (0)