From aee18bfde97cf1a37bd4e930f621fe7db0011465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dubois?= Date: Mon, 13 Nov 2023 16:01:47 +0100 Subject: [PATCH] base: configure "/var/log" for servers that have a mount on it --- CHANGELOG | 1 + roles/base/handlers/main.yml | 5 +++++ roles/base/tasks/fstab_entries.yml | 1 + 3 files changed, 7 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 9736c61..67fe861 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -82,6 +82,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * base: ignore errors on packages installation because it fails for some packages when run in check mode * evomaintenance: upstream release 23.10.1 * accounts, etc-git, evocheck, nagios-nrpe: multiple changes to not fail when run in check mode +* base: configure "/var/log" for servers that have a mount on it ### Fixed diff --git a/roles/base/handlers/main.yml b/roles/base/handlers/main.yml index 11108db..2b67807 100644 --- a/roles/base/handlers/main.yml +++ b/roles/base/handlers/main.yml @@ -12,6 +12,11 @@ args: warn: false +- name: remount /var/log noatime + ansible.builtin.command: mount -u -o noatime /var/log + args: + warn: false + - name: remount /usr noatime ansible.builtin.command: mount -u -o noatime /usr args: diff --git a/roles/base/tasks/fstab_entries.yml b/roles/base/tasks/fstab_entries.yml index 03d2b86..db6d858 100644 --- a/roles/base/tasks/fstab_entries.yml +++ b/roles/base/tasks/fstab_entries.yml @@ -14,6 +14,7 @@ with_items: - "/" - "/var" + - "/var/log" - "/usr" - "/usr/X11R6" - "/usr/local"