Ensure CPU tuning is only applied on Debian 11+

This commit is contained in:
2023-09-01 15:42:29 -04:00
parent 6bf827ca13
commit 5a48ec4d79
4 changed files with 7 additions and 2 deletions

View File

@ -59,7 +59,7 @@
# Install CPU tuning
- include: cputuning/main.yml
tags: pvc-cputuning
when: cpu_tuning is defined
when: ansible_distribution_major_version|int >= 11 and cpu_tuning is defined
- name: restart server on first install
shell: 'sleep 3 && shutdown -r now "Ansible updates triggered"'