|
@@ -6,15 +6,25 @@ |
|
|
- include: setup_Debian.yml |
|
|
- include: setup_Debian.yml |
|
|
when: ansible_os_family == "Debian" |
|
|
when: ansible_os_family == "Debian" |
|
|
|
|
|
|
|
|
#- include: gdisk.yml |
|
|
|
|
|
|
|
|
|
|
|
- name: write partition table |
|
|
- name: write partition table |
|
|
command: |
|
|
command: |
|
|
parted --script |
|
|
parted --script |
|
|
{{ item.device }} |
|
|
{{ item.device }} |
|
|
-- {{ lookup('template','parted_args.j2') }} |
|
|
|
|
|
|
|
|
-- mklabel {{ item.label_type }} |
|
|
with_items: "{{ hard_disks }}" |
|
|
with_items: "{{ hard_disks }}" |
|
|
|
|
|
|
|
|
|
|
|
- name: write partitions |
|
|
|
|
|
command: |
|
|
|
|
|
parted --script |
|
|
|
|
|
{{ item.0.device }} |
|
|
|
|
|
-- {{ lookup('template','parted_partitions_args.j2') }} |
|
|
|
|
|
with_subelements: |
|
|
|
|
|
- "{{ hard_disks }}" |
|
|
|
|
|
- partitions |
|
|
|
|
|
|
|
|
|
|
|
- fail: |
|
|
|
|
|
msg: here |
|
|
|
|
|
|
|
|
- name: sync |
|
|
- name: sync |
|
|
command: sync |
|
|
command: sync |
|
|
|
|
|
|
|
|