Przeglądaj źródła

Refactor volume directory creation

Scott Dodson 8 lat temu
rodzic
commit
3f2d71a1bf
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      roles/openshift_storage_nfs/tasks/main.yml

+ 3 - 2
roles/openshift_storage_nfs/tasks/main.yml

@@ -20,13 +20,14 @@
 
 - name: Ensure export directories exist
   file:
-    path: "{{ openshift.hosted.registry.storage.nfs.directory }}/{{ item }}"
+    path: "{{ item.storage.nfs.directory }}/{{ item.storage.volume.name }}"
     state: directory
     mode: 0777
     owner: nfsnobody
     group: nfsnobody
   with_items:
-  - "{{ openshift.hosted.registry.storage.volume.name }}"
+  - "{{ openshift.hosted.registry }}"
+  - "{{ openshift.hosted.metrics }}"
 
 - name: Configure exports
   template: