summaryrefslogtreecommitdiffstats
path: root/ansible/roles/resource-data
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-03-21 12:32:20 +0000
committerMichal Ptacek <m.ptacek@partner.samsung.com>2019-03-26 09:03:16 +0000
commit200ae72c05772dab23923bc74c88c8691f7224fc (patch)
tree40ed2cc3e83bd790c0c41c5f02ea28a577e68cae /ansible/roles/resource-data
parentf842b36613c91f86dd371b590e048e5c4e510f34 (diff)
Fixing some yaml-lint warnings
Scope of this commit is to fix warnings reported by offline-installer-master-yaml-lint jenkins job Change-Id: Id858a37ce35d53ad1ffd5e5797607faae484ed15 Issue-ID: OOM-1753 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'ansible/roles/resource-data')
-rw-r--r--ansible/roles/resource-data/tasks/unarchive-nfs-resource.yml3
-rw-r--r--ansible/roles/resource-data/tasks/unarchive-resource.yml7
-rw-r--r--ansible/roles/resource-data/tasks/unarchive-ssh-resource.yml3
3 files changed, 9 insertions, 4 deletions
diff --git a/ansible/roles/resource-data/tasks/unarchive-nfs-resource.yml b/ansible/roles/resource-data/tasks/unarchive-nfs-resource.yml
index 9f9d92d0..bbf99321 100644
--- a/ansible/roles/resource-data/tasks/unarchive-nfs-resource.yml
+++ b/ansible/roles/resource-data/tasks/unarchive-nfs-resource.yml
@@ -16,7 +16,8 @@
fstype: nfs
state: mounted
- - name: "Unarchive resource {{ resources_dir }}/{{ resource_source_filename }} to {{ resource_destination_directory }} dir on infrastructure servers over nfs"
+ - name: "Unarchive resource {{ resources_dir }}/{{ resource_source_filename }} \
+ to {{ resource_destination_directory }} dir on infrastructure servers over nfs"
unarchive:
src: "/tmp/resource_data/{{ resource_source_filename }}"
dest: "{{ resource_destination_directory }}"
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"
diff --git a/ansible/roles/resource-data/tasks/unarchive-ssh-resource.yml b/ansible/roles/resource-data/tasks/unarchive-ssh-resource.yml
index 1385ba55..bd578ae3 100644
--- a/ansible/roles/resource-data/tasks/unarchive-ssh-resource.yml
+++ b/ansible/roles/resource-data/tasks/unarchive-ssh-resource.yml
@@ -29,7 +29,8 @@
set_fact:
tar_extract_options: "{{ '-xzf' if compressed.rc == 0 else '-xf' }}"
- - name: "Unarchive resource {{ resources_dir }}/{{ resource_source_filename }} to {{ resource_destination_directory }} dir on infrastructure servers over ssh"
+ - name: "Unarchive resource {{ resources_dir }}/{{ resource_source_filename }} \
+ to {{ resource_destination_directory }} dir on infrastructure servers over ssh"
shell: >
ssh -o StrictHostKeyChecking=no -o BatchMode=yes
-i /root/.ssh/infra_to_resource.privkey