formatparition.yml 325 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 --- - hosts: new_host become: true tasks: - name: "Format disk: \"{{ item.device }}\" using etx4" filesystem: dev: "{{ item.device }}" fstype: ext4 with_items: - { device: /dev/vdc1 } - { device: /dev/vdc2 } - { device: /dev/vdc3 }