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
|
2016-03-07 17:43:37 +01:00
|
|
|
with_items: '{{ disks_and_mountpoints_list | default([]) }}'
|
2015-06-29 19:58:48 +02:00
|
|
|
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-07 17:43:37 +01:00
|
|
|
with_items: '{{ disks_and_mountpoints_list | default([]) }}'
|
2015-06-29 19:58:48 +02:00
|
|
|
when: additional_disks
|
|
|
|
tags: [ 'data_disk', 'mountpoint' ]
|
|
|
|
|
2016-03-01 17:24:22 +01:00
|
|
|
|