2015-06-29 19:58:48 +02:00
|
|
|
---
|
|
|
|
- name: Create a file system on the new disks
|
|
|
|
filesystem: dev=/dev/{{ item.device }} fstype={{ item.fstype }} force=no
|
|
|
|
with_items: disks_and_mountpoints_list
|
|
|
|
when:
|
|
|
|
- additional_disks
|
|
|
|
- item.create_filesystem
|
|
|
|
tags: [ 'data_disk', 'mountpoint' ]
|
|
|
|
|
|
|
|
- name: Manage the additional file systems
|
|
|
|
mount: name={{ item.mountpoint }} src=/dev/{{ item.device }} fstype={{ item.fstype }} opts={{ item.opts }} state={{ item.state }}
|
2016-03-01 17:24:22 +01:00
|
|
|
with_items: '{{ disks_and_mountpoints_list }}'
|
2015-06-29 19:58:48 +02:00
|
|
|
when: additional_disks
|
|
|
|
tags: [ 'data_disk', 'mountpoint' ]
|
|
|
|
|
2016-03-01 17:24:22 +01:00
|
|
|
|