diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-03-26 09:07:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-26 09:07:18 +0000 |
commit | fc7ca30540c2cd926346b27c9d4656272ca70e96 (patch) | |
tree | 01d8842e9f6ad9d93b712eb83a7c660dae6629b0 /ansible/roles/resource-data/tasks/unarchive-resource.yml | |
parent | 63750134d02b6cdf34172afa055e44f65025fbc7 (diff) | |
parent | 200ae72c05772dab23923bc74c88c8691f7224fc (diff) |
Merge "Fixing some yaml-lint warnings"
Diffstat (limited to 'ansible/roles/resource-data/tasks/unarchive-resource.yml')
-rw-r--r-- | ansible/roles/resource-data/tasks/unarchive-resource.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ansible/roles/resource-data/tasks/unarchive-resource.yml b/ansible/roles/resource-data/tasks/unarchive-resource.yml index 79fdbfce..9097ddc8 100644 --- a/ansible/roles/resource-data/tasks/unarchive-resource.yml +++ b/ansible/roles/resource-data/tasks/unarchive-resource.yml @@ -34,7 +34,9 @@ - name: "Unarchive resource {{ resource_source_filename }} from host {{ resources_source_host }}, transport is {{ transport }}" include_tasks: "unarchive-{{ transport }}-resource.yml" - - file: + + - name: "Generate flag file after resources are deployed on infra" + file: path: "{{ resource_destination_directory }}/{{ resource_source_filename }}-uploaded" state: touch rescue: @@ -51,5 +53,6 @@ with_items: "{{ files_after_fail.files | difference(original_files.files) }}" when: files_after_fail is defined - - fail: + - name: "Report failure of upload operation" + fail: msg: "Upload of {{ resource_source_filename }} failed" |