roles/block-device/tasks/main.yaml
changeset 0 df042396074e
equal deleted inserted replaced
-1:000000000000 0:df042396074e
       
     1 ---
       
     2 
       
     3 - name: create mount point
       
     4   become: yes
       
     5   file:
       
     6     path:  "{{block_device_mount_point}}"
       
     7     mode:  "{{block_device_mode}}"
       
     8     state: "directory"
       
     9 
       
    10 - name: mount block device
       
    11   become: yes
       
    12   mount:
       
    13     path:   "{{block_device_mount_point}}"
       
    14     src:    "{{block_device_uuid}}"
       
    15     fstype: "{{block_device_fstype}}"
       
    16     opts:   "{{block_device_opts}}"
       
    17     state:  "mounted"