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 <mvadkert@redhat.com>
This commit is contained in:
Miroslav Vadkerti 2023-03-25 03:30:47 +01:00 committed by lsm5
parent 144403ee62
commit f12cda32c2

View File

@ -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