From e87caadc2ad74430f26d4da142e1b3d7e6abb34c Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 25 Mar 2023 18:57:31 +0200 Subject: [PATCH] update swap role --- docs/services/system.md | 7 +------ requirements.yml | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docs/services/system.md b/docs/services/system.md index 430f3e5..d8bb491 100644 --- a/docs/services/system.md +++ b/docs/services/system.md @@ -25,12 +25,7 @@ system_swap_enabled: true A swap file will be created in `/var/swap` (configured using the `system_swap_path` variable) and enabled in your `/etc/fstab` file. -By default, the swap file will have the following size: - -- on systems with `<= 2GB` of RAM, swap file size = `total RAM * 2` -- on systems with `> 2GB` of RAM, swap file size = `1GB` - -To avoid these calculations and set your own size explicitly, set the `system_swap_size` variable in megabytes, example (4gb): +By default, the swap file will have `1GB` size, but you can set the `system_swap_size` variable in megabytes, example (4gb): ```yaml system_swap_size: 4096 diff --git a/requirements.yml b/requirements.yml index 70f5cef..462d24e 100644 --- a/requirements.yml +++ b/requirements.yml @@ -2,7 +2,7 @@ version: 6.1.0 name: geerlingguy.docker - src: git+https://gitlab.com/etke.cc/roles/swap.git - version: 843a0222b76a5ec361b35f31bf4dc872b6d7d54e + version: abfb18b6862108bbf24347500446203170324d7f - src: git+https://gitlab.com/etke.cc/roles/ssh.git version: 237adf859f9270db8a60e720bc4a58164806644e - src: git+https://gitlab.com/etke.cc/roles/fail2ban.git