Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Adds cleanup of transferred & loaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgrote committed Aug 8, 2018
1 parent 9bbed54 commit 553df7e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
become: yes

- name: ensure required directories exist
file: state=directory path={{ item }} owner={{ ibm_infosvr_openigc_dsadm_user }} group={{ ibm_infosvr_openigc_dsadm_group }} mode=0755
file:
state: directory
path: "{{ item }}"
owner: "{{ ibm_infosvr_openigc_dsadm_user }}"
group: "{{ ibm_infosvr_openigc_dsadm_group }}"
mode: 0755
with_items:
- "{{ ibm_infosvr_openigc_assets_dir }}"
- "{{ ibm_infosvr_openigc_assets_dir }}/bundles"
Expand All @@ -40,3 +45,11 @@
- import_tasks: assets.yml
become_user: "{{ ibm_infosvr_openigc_dsadm_user }}"
become: yes

- name: cleanup directories
file: state=absent path={{ item }}
with_items:
- "{{ ibm_infosvr_openigc_assets_dir }}/bundles"
- "{{ ibm_infosvr_openigc_assets_dir }}/assets"
become_user: root
become: yes

0 comments on commit 553df7e

Please sign in to comment.