But only for the first partition, so that a new label doesn't
blow away the previous partition created
Signed-off-by: Alfredo Deza <adeza@redhat.com>
gather_facts: false
become: yes
tasks:
-
+
- name: create physical volume
command: pvcreate /dev/sdb
failed_when: false
part_start: 0%
part_end: 50%
unit: '%'
+ # this is a brand-new, unlabeled disk, so add the label
+ # only for the first partition
+ label: gpt
state: present
- name: partition /dev/sdc for journals