From 54d089f4a83fad45fea3656603b08b9ce3f5761b Mon Sep 17 00:00:00 2001 From: Jiri Stransky Date: Tue, 26 Feb 2019 15:34:40 +0100 Subject: [PATCH] Tasks for cleaning up after tripleo_persist and tripleo_transfer After the upgrade has been completed, we want to clean up the data from undercloud. Change-Id: I680b4f2c0a4a7ca8e98750347701b8d390e565cd Implements: blueprint upgrades-with-os --- roles/tripleo-persist/tasks/cleanup.yml | 6 ++++++ roles/tripleo-transfer/tasks/cleanup.yml | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 roles/tripleo-persist/tasks/cleanup.yml create mode 100644 roles/tripleo-transfer/tasks/cleanup.yml diff --git a/roles/tripleo-persist/tasks/cleanup.yml b/roles/tripleo-persist/tasks/cleanup.yml new file mode 100644 index 000000000..2fad5cabb --- /dev/null +++ b/roles/tripleo-persist/tasks/cleanup.yml @@ -0,0 +1,6 @@ +- name: ensure tripleo_persist storage directory is removed + file: + path: "{{tripleo_persist_storage_root_dir}}" + state: absent + delegate_to: localhost + become: "{{tripleo_persist_storage_root_become}}" diff --git a/roles/tripleo-transfer/tasks/cleanup.yml b/roles/tripleo-transfer/tasks/cleanup.yml new file mode 100644 index 000000000..616689cbc --- /dev/null +++ b/roles/tripleo-transfer/tasks/cleanup.yml @@ -0,0 +1,6 @@ +- name: ensure tripleo_transfer storage directory is removed + file: + path: "{{tripleo_transfer_storage_root_dir}}" + state: absent + delegate_to: localhost + become: "{{tripleo_transfer_storage_root_become}}"