Merge "Add Shared Storage as optional"
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 28 Jul 2020 17:37:21 +0000 (17:37 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Tue, 28 Jul 2020 17:37:21 +0000 (17:37 +0000)
1  2 
apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml

index 90fb05b65c7024ee2cbfc08798e885f794d4d37f,6d3a676aa0d2c91bc1a7c923ea18ddfff8ead747..fc8f2dcf84d6a0b062097ae223696a7f7f8675ac
    loop_control:
      loop_var: config_file
  
 +- name: Implement Workaround for connectivity problem - ping all tunnels
 +  k8s:
 +    state: present
 +    definition: "{{ lookup('template', config_file) }}"
 +  with_items:
 +    - ping-tunnel-workaround.yaml.j2
 +  loop_control:
 +    loop_var: config_file
 +
  - name: Wait until OPERATOR pod is available
    k8s_facts:
      kind: Pod
    with_items:
      - pool.yaml.j2
      - storageclass.yaml.j2
+   loop_control:
+     loop_var: config_file
+ - name: Create rook file system
+   k8s:
+     state: present
+     definition: "{{ lookup('template', config_file) }}"
+   with_items:
      - filesystem.yaml.j2
      - filesystem-storageclass.yaml.j2
    loop_control:
      loop_var: config_file
+   when: rook_filesystem|bool
  
  - name: Create rook external dashboard
    k8s: