Przeglądaj źródła

Merge pull request #6090 from dustymabe/dusty

hosted_registry: clean up tmp mount point and fstab
Michael Gugino 7 lat temu
rodzic
commit
df88cb9361

+ 2 - 9
roles/openshift_hosted/tasks/storage/glusterfs.yml

@@ -79,14 +79,7 @@
       - REGISTRY_STORAGE_MAINTENANCE_READONLY_ENABLED: 'true'
   when: openshift.hosted.registry.storage.glusterfs.swap
 
-- name: Unmount registry volume
+- name: Unmount registry volume and clean up mount point/fstab
   mount:
-    state: unmounted
-    name: "{{ mktemp.stdout }}"
-
-- name: Delete temp mount directory
-  file:
-    dest: "{{ mktemp.stdout }}"
     state: absent
-  changed_when: False
-  check_mode: no
+    name: "{{ mktemp.stdout }}"