diff options
Diffstat (limited to 'ansible/roles/ramdisk/tasks/main.yml')
-rw-r--r-- | ansible/roles/ramdisk/tasks/main.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/ramdisk/tasks/main.yml b/ansible/roles/ramdisk/tasks/main.yml new file mode 100644 index 0000000..2c05747 --- /dev/null +++ b/ansible/roles/ramdisk/tasks/main.yml | |||
@@ -0,0 +1,13 @@ | |||
1 | - name: create ramdisk directory | ||
2 | file: | ||
3 | dest: /srv/ramdisk | ||
4 | mode: 0755 # TODO: use acl module and bind this to system data user | ||
5 | state: directory | ||
6 | |||
7 | - name: mount ramdisk to /srv/ramdisk | ||
8 | mount: | ||
9 | path: /srv/ramdisk | ||
10 | src: tmpfs | ||
11 | fstype: tmpfs | ||
12 | opts: "lazytime,size={{ ansible_memtotal_mb }}M" | ||
13 | state: mounted | ||