Skip a step if setup is iSCSI
Change-Id: Ic15f3b7050295def1e89df667e23fa13e35937ed
diff --git a/playbooks/setup-openstack-storpool/pre.yaml b/playbooks/setup-openstack-storpool/pre.yaml
index 03a8547..a943687 100644
--- a/playbooks/setup-openstack-storpool/pre.yaml
+++ b/playbooks/setup-openstack-storpool/pre.yaml
@@ -344,10 +344,13 @@
- name: Provision StorPool Deployment Configuration 3
no_log: true
ansible.builtin.command:
- argv: [ "ssh", "-o", "StrictHostKeyChecking=accept-new", "{{ item }}", "exit", "0" ]
- loop:
- - "{{ storpool_node_ip }}"
- - "{{ openstack_node_ip }}"
+ argv: [ "ssh", "-o", "StrictHostKeyChecking=accept-new", "{{ storpool_node_ip }}", "exit", "0" ]
+
+ - name: Provision StorPool Deployment Configuration 4
+ no_log: true
+ ansible.builtin.command:
+ argv: [ "ssh", "-o", "StrictHostKeyChecking=accept-new", "{{ openstack_node_ip }}", "exit", "0" ]
+ when: storpool_connection == "block"
- name: Install python3-pip
become: true