Ensure CPU tuning is only applied on Debian 11+

This commit is contained in:
Joshua Boniface
2022-11-15 15:37:44 -05:00
parent 8c808c9c2c
commit 3c1c97dbf5
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"'