From 1204730924436ef9e1c7c49c9557837f9a5ed0e8 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 8 Feb 2023 00:40:09 -0800 Subject: fork https://github.com/mattsta/mailweb --- ansible/roles/ramdisk/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ansible/roles/ramdisk/tasks/main.yml (limited to 'ansible/roles/ramdisk') 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 @@ +- name: create ramdisk directory + file: + dest: /srv/ramdisk + mode: 0755 # TODO: use acl module and bind this to system data user + state: directory + +- name: mount ramdisk to /srv/ramdisk + mount: + path: /srv/ramdisk + src: tmpfs + fstype: tmpfs + opts: "lazytime,size={{ ansible_memtotal_mb }}M" + state: mounted -- cgit v1.2.3