Skip to content

Commit 6480dd6

Browse files
author
Marcus Levine
committed
adding cache cleaning to trim down image size
1 parent 57c1bc8 commit 6480dd6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tasks/install.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@
3333
pip:
3434
name: virtualenv
3535
state: latest
36-
executable: /usr/bin/pip
36+
executable: /usr/bin/pip
37+
38+
- name: Clean yum cache
39+
command: yum clean all
40+
when: ansible_os_family == 'RedHat'
41+
42+
- name: Clean apt cache
43+
command: apt-get autoclean
44+
when: ansible_os_family == 'Debian'

0 commit comments

Comments
 (0)