Fix some bugs about ansible deployment
[stor4nfv.git] / ci / ansible / roles / nbp-installer / tasks / main.yml
index dd13195..09764a5 100644 (file)
@@ -19,6 +19,7 @@
     state: present\r
   with_items:\r
     - open-iscsi\r
+  when: nbp_plugin_type != "hotpot_only"\r
 \r
 - name: create nbp work directory if it doesn't exist\r
   file:\r
     mode: 0755\r
   with_items:\r
     - "{{ nbp_work_dir }}"\r
+  when: nbp_plugin_type != "hotpot_only"\r
 \r
 - name: include scenarios/repository.yml when installing from repository\r
   include: scenarios/repository.yml\r
-  when: install_from == "repository"\r
+  when: install_from == "repository" and nbp_plugin_type != "hotpot_only"\r
 \r
 - name: include scenarios/release.yml when installing from release\r
   include: scenarios/release.yml\r
-  when: install_from == "release"\r
+  when: install_from == "release" and nbp_plugin_type != "hotpot_only"\r
 \r
 - name: include scenarios/flexvolume.yml when nbp plugin type is flexvolume\r
   include: scenarios/flexvolume.yml\r