formatparition.yml 361 Bytes
---
- hosts: new-host
  become: true
  tasks:
        - name: "Format disk: \"{{ item.device }}\" using etx4"
          filesystem:
            dev: "{{ item.device }}"
            fstype: ext4
          with_items:
            - { device: /dev/vdd1 }
            - { device: /dev/vdd2 }
            - { device: /dev/vdd3 }
            - { device: /dev/vdd4 }