From 775c80c1c376f2df238df592ebce431ab5f964eb Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Wed, 1 Mar 2023 17:15:14 +0300 Subject: [PATCH] exclude "Disable Transparent Huge Pages" for containers Exclude performance tuning "Transparent Huge Pages" for containers ('docker', 'lxc', 'podman') to prevent test failures in CI. --- roles/transparent_huge_pages/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/transparent_huge_pages/tasks/main.yml b/roles/transparent_huge_pages/tasks/main.yml index f042c1e37..711caae0b 100644 --- a/roles/transparent_huge_pages/tasks/main.yml +++ b/roles/transparent_huge_pages/tasks/main.yml @@ -19,7 +19,9 @@ [Install] WantedBy=basic.target notify: "restart disable-thp" - when: disable_thp is defined and disable_thp|bool + when: + - (disable_thp is defined and disable_thp|bool) + - ansible_virtualization_type not in ['docker', 'lxc', 'podman'] # exclude for containers to prevent test failures in CI. tags: disable_thp, transparent_huge_pages - name: Make sure handlers are flushed immediately