blob: f66e94d9542da9ccc3ae726f5c0e8c0a63cdd6cf [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 }}"
Andy Bavier5dbafee2016-07-20 17:25:51 -040016 register: result
17 until: result | success
18 retries: 3
19 delay: 5
Zack Williamsfc102dd2016-03-01 17:31:30 -070020