summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/create_pv
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-08-19 13:21:20 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-08-19 13:21:20 -0400
commit3c3669ccf9bacd69a222cdb45a0c377da0ce090a (patch)
tree65115d54284e4e57beee005d973e59ca489e7697 /playbooks/adhoc/create_pv
parent3efe322c2621e1ba19a5bfc1e7b13bb8bd1177ef (diff)
downloadopenshift-3c3669ccf9bacd69a222cdb45a0c377da0ce090a.tar.gz
openshift-3c3669ccf9bacd69a222cdb45a0c377da0ce090a.tar.bz2
openshift-3c3669ccf9bacd69a222cdb45a0c377da0ce090a.tar.xz
openshift-3c3669ccf9bacd69a222cdb45a0c377da0ce090a.zip
remove fstab entry after pv creation
Diffstat (limited to 'playbooks/adhoc/create_pv')
-rw-r--r--playbooks/adhoc/create_pv/create_pv.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/adhoc/create_pv/create_pv.yaml b/playbooks/adhoc/create_pv/create_pv.yaml
index 684a0ca72..591b1d902 100644
--- a/playbooks/adhoc/create_pv/create_pv.yaml
+++ b/playbooks/adhoc/create_pv/create_pv.yaml
@@ -118,6 +118,13 @@
state: unmounted
fstype: ext4
+ - name: remove from fstab
+ mount:
+ name: "{{ pv_mntdir }}"
+ src: "{{ cli_device_name }}"
+ state: absent
+ fstype: ext4
+
- name: detach drive
delegate_to: localhost
ec2_vol: