summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-08 00:40:09 -0800
committerclarkzjw <[email protected]>2023-02-08 00:40:09 -0800
commit1204730924436ef9e1c7c49c9557837f9a5ed0e8 (patch)
tree129d79dfd11245751cee6d4082ff5d2f6e941610 /ansible/roles/ramdisk
parent9635ac4dedf69de5bff65785bcc16bef80b52d75 (diff)
downloadmail-1204730924436ef9e1c7c49c9557837f9a5ed0e8.tar.gz
fork https://github.com/mattsta/mailwebHEADmaster
Diffstat (limited to 'ansible/roles/ramdisk')
-rw-r--r--ansible/roles/ramdisk/tasks/main.yml13
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
Powered by cgit v1.2.3 (git 2.41.0)