mirror of
https://github.com/mother-of-all-self-hosting/mash-playbook
synced 2024-11-10 14:24:25 +00:00
update swap role
This commit is contained in:
parent
64bcce723d
commit
e87caadc2a
2 changed files with 2 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue