This commit includes the original resources.yml playbook
by using import_playbook.
Some modifications were needed mostly because of the way
import_playbook works.
Also moved the setup role call to prepare.
Change-Id: I8745d5e43fd2050d47970c7d19bbbc4db8a5847f
Issue-ID: OOM-1912
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
 ---
-- name: Test resource transfer with ssh
+- name: Initialize
   hosts: all
-  roles:
-    - setup
-    - resource-data
+  tasks:
+    - name: Include variables
+      include_vars: vars.yml
+
+- import_playbook: ../../../../resources.yml
 
 - name: Prepare resource-data
   hosts: all
   roles:
+    - setup
     - prepare-resource-data
+  vars_files:
+    - vars.yml
 
 ---
-app_data_path: /opt/myleculeapp
+app_data_path: /opt/moleculeapp
 aux_data_path: "{{ app_data_path }}/runtime_images_source_dir"
 resources_dir: /data
 resources_filename: resources_package.tar
 
       - name: resource-data
 provisioner:
   name: ansible
-  playbooks:
-    cleanup: ../default/cleanup.yml
   env:
     ANSIBLE_ROLES_PATH: ../../../../roles:../../../roles
-  inventory:
-    links:
-      group_vars: ../default/group_vars
   lint:
     name: ansible-lint
 verifier:
 
 ---
-- name: Test resource transfer with nfs
+- name: Initialize
   hosts: all
-  roles:
-    - setup
-    - role: resource-data
-      vars:
-        resources_on_nfs: true
+  tasks:
+    - name: Include variables
+      include_vars: vars.yml
+
+- import_playbook: ../../../../resources.yml
 
 ---
-- name: Prepare resource-data
+- name: Prepare
   hosts: all
   roles:
-    - role: prepare-resource-data
-      vars:
-        resources_on_nfs: true
+    - prepare-resource-data
+  vars_files:
+    - vars.yml
 
--- /dev/null
+---
+app_data_path: /opt/moleculeapp
+aux_data_path: "{{ app_data_path }}/runtime_images_source_dir"
+resources_on_nfs: true
+resources_dir: /data
+resources_filename: resources_package.tar
+aux_resources_filename: aux_resources_package.tar