diff --git a/gdeploy.spec b/gdeploy.spec index 6984a2bc..27d81f2c 100644 --- a/gdeploy.spec +++ b/gdeploy.spec @@ -3,7 +3,7 @@ %define release 2 %define gdeploymod ansible/modules/extras/system/glusterfs %define gdeploytemp /usr/share/ansible/gdeploy -%define gdeploydoc /usr/share/docs/gdeploy +%define gdeploydoc /usr/share/doc/gdeploy %define gdeploysrc http://download.gluster.org/pub/gluster/gdeploy/LATEST Name: %{name} diff --git a/playbooks/pvcreate.yml b/playbooks/pvcreate.yml index 3f230bfa..dc0decd0 100644 --- a/playbooks/pvcreate.yml +++ b/playbooks/pvcreate.yml @@ -4,6 +4,15 @@ gather_facts: no tasks: + # Remove the filesystem signature. pvcreate fails if signature is present. + # Safe to remove signatures, no harm done. + # TODO: add wipe_signature=yes/no in future. + - name: Clean up filesystem signature + command: wipefs -af {{ item }} + with_items: "{{ bricks | default([]) }}" + when: item is defined + ignore_errors: yes + # Create pv on all the disks - name: Create Physical Volume pv: action=create disks={{ item }}