From 75b0c01239aa2a09bab91d45e2508ffeed0f90bf Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Wed, 29 May 2024 20:58:02 +0200 Subject: [PATCH] Test role swap It is slightly awkward to include the swap_size variable with the playbook in "pull" mode since the hosts file cannot really be used to set different swap sizes for different hosts at the same time. I guess this is one of the downsides compared to "push". --- hosts.yml | 2 ++ local.yml | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts.yml b/hosts.yml index 991019a..a36893c 100644 --- a/hosts.yml +++ b/hosts.yml @@ -4,3 +4,5 @@ all: local: hosts: localhost: + # RAM is 16 GB + swap_size: 16384 diff --git a/local.yml b/local.yml index ebb4f5c..80bac15 100644 --- a/local.yml +++ b/local.yml @@ -18,12 +18,17 @@ tags: always roles: + # https://codeberg.org/ansible/common - { role: common, become: true, tags: [ common ] } + # https://codeberg.org/ansible/common-systools - { role: common-systools, become: true, tags: [ common ] } - { role: dotfiles, tags: [ dotfiles ] } + # https://codeberg.org/ansible/locales - { role: locales, become: true, tags: [ locales ] } + # https://codeberg.org/ansible/ssh - { role: ssh, become: true, tags: [ ssh ] } - # - { role: swap, become: true, tags: [ swap ] } + # https://codeberg.org/ansible/swap + - { role: swap, become: true, tags: [ swap ] } # - { role: mounts-remote, become: true, tags: [ mounts-remote ] } # jietop will need a different desktop by default (not GNOME, but something else) # but perhaps we still want rofi/dmenu anyway?