diff options
author | clarkzjw <[email protected]> | 2023-02-08 00:40:09 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-08 00:40:09 -0800 |
commit | 1204730924436ef9e1c7c49c9557837f9a5ed0e8 (patch) | |
tree | 129d79dfd11245751cee6d4082ff5d2f6e941610 /ansible/roles/ramdisk/tasks | |
parent | 9635ac4dedf69de5bff65785bcc16bef80b52d75 (diff) | |
download | mail-1204730924436ef9e1c7c49c9557837f9a5ed0e8.tar.gz |
Diffstat (limited to 'ansible/roles/ramdisk/tasks')
-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 | ||