blob: bfe9cd8d21357b9db1b34f411212f12c50235346 [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 Bavier66ee9012016-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
Andy Bavier69e20612016-11-14 05:52:31 -080021- name: Set up symlink targets
22 file:
23 path: "{{ item.src }}"
24 state: directory
25 with_items: "{{ cloudlab_links }}"
26
27- name: Create symlinks
28 file:
29 src: "{{ item.src }}"
30 dest: "{{ item.dest }}"
31 state: link
32 with_items: "{{ cloudlab_links }}"