Skip to content

Commit

Permalink
ISSUE-17: Remove cache for package manager (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
KKoukiou authored Aug 23, 2017
1 parent 6d52aaf commit 0b711b7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
path: "/etc/sysconfig/rhn/systemid"
state: absent

- name: remove yum cache on RHEL/Centos
shell: "yum clean all; rm -rf /var/cache/yum"
args:
warn: no

when: ansible_os_family == "RedHat"

- name: remove hwaddr information from network interfaces on Ubuntu/Debian
Expand All @@ -96,6 +101,11 @@
regexp: "^[ \t]*hwaddress.*"
when: ansible_os_family == 'Debian'

- name: remove apt cache on Ubuntu/Debian
shell: "apt-get clean"
args:
warn: no
when: ansible_os_family == 'Debian'

- name: Fetch logs to be removed
find:
Expand Down

0 comments on commit 0b711b7

Please sign in to comment.