Use debian_version custom fact

This commit is contained in:
Joshua Boniface
2023-08-08 16:27:51 -04:00
parent b8278644b5
commit 0ee5a93b2d
2 changed files with 2 additions and 2 deletions

View File

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