Add entry for stor4nfv scenario 67/61367/1
authorHarry Huang <huangxiangyu5@huawei.com>
Sat, 25 Aug 2018 06:50:53 +0000 (14:50 +0800)
committerHarry Huang <huangxiangyu5@huawei.com>
Sat, 25 Aug 2018 06:50:53 +0000 (14:50 +0800)
JIRA: -

opensds.yml will always be execuated even if it's not
stor4nfv scenario because of no condition check. Add
an entry to control all stor4nfv tasks

Change-Id: I329acb674dab5bc5644127a1d6846cf0b2e3522a
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
plugins/stor4nfv/roles/os-stor4nfv/tasks/main.yml
plugins/stor4nfv/roles/os-stor4nfv/tasks/stor4nfv.yml [new file with mode: 0644]
plugins/stor4nfv/roles/stor4nfv/tasks/main.yml
plugins/stor4nfv/roles/stor4nfv/tasks/stor4nfv.yml [new file with mode: 0644]

index 060c9cf..dbaa8d6 100644 (file)
@@ -7,8 +7,7 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 # #############################################################################
 ---
-- include: opensds.yml
-- include: post-install.yml
+- include: stor4nfv.yml
   when:
     - ansible_distribution == 'Ubuntu'
     - stor4nfv is defined and stor4nfv == "Enable"
diff --git a/plugins/stor4nfv/roles/os-stor4nfv/tasks/stor4nfv.yml b/plugins/stor4nfv/roles/os-stor4nfv/tasks/stor4nfv.yml
new file mode 100644 (file)
index 0000000..57bae79
--- /dev/null
@@ -0,0 +1,12 @@
+# #############################################################################
+# Copyright (c) 2018 Intel Corp.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+# #############################################################################
+---
+- include: opensds.yml
+
+- include: post-install.yml
index 060c9cf..7bc8ec0 100644 (file)
@@ -7,8 +7,7 @@
 # http://www.apache.org/licenses/LICENSE-2.0
 # #############################################################################
 ---
-- include: opensds.yml
-- include: post-install.yml
+- include: stor4nfv
   when:
     - ansible_distribution == 'Ubuntu'
     - stor4nfv is defined and stor4nfv == "Enable"
diff --git a/plugins/stor4nfv/roles/stor4nfv/tasks/stor4nfv.yml b/plugins/stor4nfv/roles/stor4nfv/tasks/stor4nfv.yml
new file mode 100644 (file)
index 0000000..57bae79
--- /dev/null
@@ -0,0 +1,12 @@
+# #############################################################################
+# Copyright (c) 2018 Intel Corp.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+# #############################################################################
+---
+- include: opensds.yml
+
+- include: post-install.yml