roles/block-device/tasks/main.yaml
changeset 2 2556522a2a45
parent 1 fd351734f007
child 3 0dc5400538ef
equal deleted inserted replaced
1:fd351734f007 2:2556522a2a45
     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"