mountpartition.yml 515 Bytes
---
- hosts: new-host
  become: true
  tasks:
        - name: "Mount up \"{{ item.device }}\" to \"{{ item.path }}\""
          mount:
                state: mounted
                fstype: ext4
                src: "{{ item.device }}"
                path: "{{ item.path }}"
          with_items:
                - { device: /dev/vdd1, path: /opt }
                - { device: /dev/vdd2, path: /upload }
                - { device: /dev/vdd3, path: /archive }
                - { device: /dev/vdd4, path: /data }