blob: 5bf71a3a3dbd58579bee57d8cf451992ad2a31be [file] [log] [blame]
Zack Williamsfc102dd2016-03-01 17:31:30 -07001---
2# roles/cloudlab-prep/tasks/main.yml
3
Zack Williamsef434f82016-04-07 17:15:39 -07004- name: create directories to mount extra filesystems
Zack Williams5ae57ef2016-04-12 14:01:58 -07005 file:
Andy Bavier3a1d0642016-07-01 14:11:39 -04006 dest={{ item.mount }}
Zack Williamsef434f82016-04-07 17:15:39 -07007 state=directory
8 with_items: "{{ cloudlab_extrafs }}"
9
10
Zack Williams2fa7ca42016-04-11 12:45:10 -070011# FIXME: does not create lost+found, -q makes it fail without error...
Zack Williamsef434f82016-04-07 17:15:39 -070012- name: Set up extra disk space
Andy Bavier3a1d0642016-07-01 14:11:39 -040013 command: /usr/testbed/bin/mkextrafs -r {{ item.dev }} -qf {{ item.mount }}
14 creates={{ item.mount }}/lost+found
Zack Williamsef434f82016-04-07 17:15:39 -070015 with_items: "{{ cloudlab_extrafs }}"
Zack Williamsfc102dd2016-03-01 17:31:30 -070016