|
@@ -7,14 +7,16 @@ |
|
|
command: |
|
|
command: |
|
|
parted --script |
|
|
parted --script |
|
|
{{ item.device }} |
|
|
{{ item.device }} |
|
|
-- mklabel {{ item.label_type }} |
|
|
|
|
|
|
|
|
-- unit kiB |
|
|
|
|
|
mklabel {{ item.label_type }} |
|
|
with_items: "{{ hard_disks }}" |
|
|
with_items: "{{ hard_disks }}" |
|
|
|
|
|
|
|
|
- name: create partitions |
|
|
- name: create partitions |
|
|
command: |
|
|
command: |
|
|
parted --script |
|
|
parted --script |
|
|
{{ item.0.device }} |
|
|
{{ item.0.device }} |
|
|
-- {{ lookup('template','parted_partitions_args.j2') }} |
|
|
|
|
|
|
|
|
-- unit kiB |
|
|
|
|
|
{{ lookup('template','parted_partitions_args.j2') }} |
|
|
with_subelements: |
|
|
with_subelements: |
|
|
- "{{ hard_disks }}" |
|
|
- "{{ hard_disks }}" |
|
|
- partitions |
|
|
- partitions |
|
@@ -23,7 +25,8 @@ |
|
|
command: |
|
|
command: |
|
|
parted --script |
|
|
parted --script |
|
|
{{ item.device }} |
|
|
{{ item.device }} |
|
|
-- {{ lookup('template','parted_flags_args.j2') }} |
|
|
|
|
|
|
|
|
-- unit kiB |
|
|
|
|
|
{{ lookup('template','parted_flags_args.j2') }} |
|
|
with_items: "{{ hard_disks }}" |
|
|
with_items: "{{ hard_disks }}" |
|
|
|
|
|
|
|
|
- name: sync |
|
|
- name: sync |
|
|