From f12cda32c2d29f201a13e5dab5239469c061d29e Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Sat, 25 Mar 2023 03:30:47 +0100 Subject: [PATCH] Adjust tests for new Ansible Testing Farm 2023-03.1 has updated to a new Ansible version. Unfortunately, playbooks using the deprecated `warn:` parameter for the shell/command modules will fail because this had been deprecated This should fix the problem. Signed-off-by: Miroslav Vadkerti --- tests/roles/set_cgroups/tasks/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/roles/set_cgroups/tasks/main.yml b/tests/roles/set_cgroups/tasks/main.yml index 133d7fe..a900673 100644 --- a/tests/roles/set_cgroups/tasks/main.yml +++ b/tests/roles/set_cgroups/tasks/main.yml @@ -27,12 +27,10 @@ - name: remove cgroup option from kernel flags shell: cmd: sed -i -e "s/^\(kernelopts=.*\)systemd\.unified_cgroup_hierarchy=.\(.*\)/\1 \2/" /boot/grub2/grubenv - warn: false - name: add it with the desired value shell: cmd: sed -i -e "s/^\(kernelopts=.*\)/\1 systemd.unified_cgroup_hierarchy=0/" /boot/grub2/grubenv - warn: false when: want_cgroups == 1 - name: grubenv, post-edit, cat