summaryrefslogtreecommitdiffstats
path: root/ci/ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'ci/ansible/roles')
-rw-r--r--ci/ansible/roles/common/tasks/main.yml5
-rw-r--r--ci/ansible/roles/nbp-installer/tasks/main.yml6
-rw-r--r--ci/ansible/roles/osdsdb/tasks/main.yml2
-rw-r--r--ci/ansible/roles/osdsdock/scenarios/ceph.yml10
4 files changed, 13 insertions, 10 deletions
diff --git a/ci/ansible/roles/common/tasks/main.yml b/ci/ansible/roles/common/tasks/main.yml
index 14a28d3..4137812 100644
--- a/ci/ansible/roles/common/tasks/main.yml
+++ b/ci/ansible/roles/common/tasks/main.yml
@@ -110,8 +110,3 @@
args:
chdir: "{{ opensds_config_dir }}"
ignore_errors: yes
-
-- name: include nbp-installer role if nbp_plugin_type != hotpot_only
- include_role:
- name: nbp-installer
- when: nbp_plugin_type != "hotpot_only"
diff --git a/ci/ansible/roles/nbp-installer/tasks/main.yml b/ci/ansible/roles/nbp-installer/tasks/main.yml
index dd13195..09764a5 100644
--- a/ci/ansible/roles/nbp-installer/tasks/main.yml
+++ b/ci/ansible/roles/nbp-installer/tasks/main.yml
@@ -19,6 +19,7 @@
state: present
with_items:
- open-iscsi
+ when: nbp_plugin_type != "hotpot_only"
- name: create nbp work directory if it doesn't exist
file:
@@ -27,14 +28,15 @@
mode: 0755
with_items:
- "{{ nbp_work_dir }}"
+ when: nbp_plugin_type != "hotpot_only"
- name: include scenarios/repository.yml when installing from repository
include: scenarios/repository.yml
- when: install_from == "repository"
+ when: install_from == "repository" and nbp_plugin_type != "hotpot_only"
- name: include scenarios/release.yml when installing from release
include: scenarios/release.yml
- when: install_from == "release"
+ when: install_from == "release" and nbp_plugin_type != "hotpot_only"
- name: include scenarios/flexvolume.yml when nbp plugin type is flexvolume
include: scenarios/flexvolume.yml
diff --git a/ci/ansible/roles/osdsdb/tasks/main.yml b/ci/ansible/roles/osdsdb/tasks/main.yml
index 396fd9a..f8fa944 100644
--- a/ci/ansible/roles/osdsdb/tasks/main.yml
+++ b/ci/ansible/roles/osdsdb/tasks/main.yml
@@ -18,7 +18,7 @@
with_first_found:
- "scenarios/etcd_{{ ansible_architecture }}.yml"
- "scenarios/etcd.yml"
- when: db_driver == "etcd" and container_enabled == false
+ when: db_driver == "etcd" and etcd_container_enabled == false
- name: include scenarios/container.yml
include: scenarios/container.yml
diff --git a/ci/ansible/roles/osdsdock/scenarios/ceph.yml b/ci/ansible/roles/osdsdock/scenarios/ceph.yml
index f5ea8ef..16aca67 100644
--- a/ci/ansible/roles/osdsdock/scenarios/ceph.yml
+++ b/ci/ansible/roles/osdsdock/scenarios/ceph.yml
@@ -20,6 +20,12 @@
with_items:
- ceph-common
+- name: install notario package with pip when ceph backend enabled
+ pip:
+ name: "{{ item }}"
+ with_items:
+ - notario
+
- name: configure ceph section in opensds global info if specify ceph backend
shell: |
cat >> opensds.conf <<OPENSDS_GLOABL_CONFIG_DOC
@@ -78,13 +84,13 @@
- name: check if ceph osd is running
shell: ps aux | grep ceph-osd | grep -v grep
- ignore_errors: false
+ ignore_errors: true
changed_when: false
register: service_ceph_osd_status
- name: check if ceph mon is running
shell: ps aux | grep ceph-mon | grep -v grep
- ignore_errors: false
+ ignore_errors: true
changed_when: false
register: service_ceph_mon_status