Skip to content
This repository has been archived by the owner on Oct 4, 2022. It is now read-only.

Commit

Permalink
https://github.com/ansible/ansible-lint/pull/2527
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Oct 2, 2022
1 parent 9544312 commit 5d0e5b1
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 31 deletions.
53 changes: 29 additions & 24 deletions playbooks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,53 +22,58 @@
ignore_unreachable: true
tasks:
- name: rm -rf /var/cache/ansible/*
ansible.builtin.raw: |
set -eu
rm -rf /var/cache/ansible/*
rm -rf /root/.cache/*
rm -rf /tmp/*
ansible.builtin.raw:
cmd: |
set -eu
rm -rf /var/cache/ansible/*
rm -rf /root/.cache/*
rm -rf /tmp/*
args:
executable: "/bin/bash"
changed_when: false
failed_when: false

- name: debian | apt-get -y clean
ansible.builtin.raw: |
set -eu
apt-get -y autoremove
apt-get -y autoclean
apt-get -y clean
rm -rf /var/lib/apt/lists/*
ansible.builtin.raw:
cmd: |
set -eu
apt-get -y autoremove
apt-get -y autoclean
apt-get -y clean
rm -rf /var/lib/apt/lists/*
args:
executable: "/bin/bash"
changed_when: false
failed_when: false

- name: redhat | yum clean all
ansible.builtin.raw: |
set -eu
yum clean all
rm -rf /var/cache/yum/*
ansible.builtin.raw:
cmd: |
set -eu
yum clean all
rm -rf /var/cache/yum/*
args:
executable: "/bin/bash"
changed_when: false
failed_when: false

- name: suse | zypper clean --all
ansible.builtin.raw: |
set -eu
zypper clean --all
rm -rf /var/cache/zypper/*
ansible.builtin.raw:
cmd: |
set -eu
zypper clean --all
rm -rf /var/cache/zypper/*
args:
executable: "/bin/bash"
changed_when: false
failed_when: false

- name: redhat | subscription-manager unregister
ansible.builtin.raw: |
set -eu
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean
ansible.builtin.raw:
cmd: |
set -eu
subscription-manager remove --all
subscription-manager unregister
subscription-manager clean
changed_when: false
failed_when: false
2 changes: 1 addition & 1 deletion roles/ansible
2 changes: 1 addition & 1 deletion roles/catatonit
2 changes: 1 addition & 1 deletion roles/gosu
2 changes: 1 addition & 1 deletion roles/locales
2 changes: 1 addition & 1 deletion roles/node
2 changes: 1 addition & 1 deletion roles/python
2 changes: 1 addition & 1 deletion roles/timezone

0 comments on commit 5d0e5b1

Please sign in to comment.