Skip to content

Commit

Permalink
Remove temporary package immediately after installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor Kimball authored and Taylor Kimball committed Dec 29, 2017
1 parent e1414b6 commit 1713892
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tasks/elrepo_repository.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@
with_items: "{{ elrepo_mktemp.stdout }}"
when: elrepo_get_url|success

- name: Purging temporary package from filesystem
file:
path: "{{ elrepo_mktemp.stdout }}"
state: absent
when:
- elrepo_mktemp|success
- elrepo_yum|success

- name: Applying elrepo repository configurations
become: true
template:
Expand All @@ -51,12 +59,4 @@
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org
state: present
when: elrepo_yum|success

- name: Purging temporary package from filesystem
file:
path: "{{ elrepo_mktemp.stdout }}"
state: absent
when:
- elrepo_mktemp|success
- elrepo_yum|success
...

0 comments on commit 1713892

Please sign in to comment.