Forráskód Böngészése

Merge pull request #493 from kwoodson/pvfix

fstab cleanup after pv creation
Kenny Woodson 9 éve
szülő
commit
95654ac100
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      playbooks/adhoc/create_pv/create_pv.yaml

+ 7 - 0
playbooks/adhoc/create_pv/create_pv.yaml

@@ -118,6 +118,13 @@
       state: unmounted
       state: unmounted
       fstype: ext4
       fstype: ext4
 
 
+  - name: remove from fstab
+    mount:
+      name: "{{ pv_mntdir }}"
+      src: "{{ cli_device_name }}"
+      state: absent
+      fstype: ext4
+
   - name: detach drive
   - name: detach drive
     delegate_to: localhost
     delegate_to: localhost
     ec2_vol:
     ec2_vol: