Use debian_version custom fact
This commit is contained in:
parent
08f923d29c
commit
017e1405ed
|
@ -3,7 +3,7 @@
|
||||||
GRUB_DEFAULT=0
|
GRUB_DEFAULT=0
|
||||||
GRUB_TIMEOUT=5
|
GRUB_TIMEOUT=5
|
||||||
GRUB_DISTRIBUTOR="PVC Parallel Virtual Cluster - Debian"
|
GRUB_DISTRIBUTOR="PVC Parallel Virtual Cluster - Debian"
|
||||||
{% if ansible_distribution_major_version|int >= 11 %}
|
{% if debian_version|int >= 11 %}
|
||||||
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 {{ grub_cmdline }}"
|
GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1 {{ grub_cmdline }}"
|
||||||
{% else %}
|
{% else %}
|
||||||
GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
|
GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
# Install CPU tuning
|
# Install CPU tuning
|
||||||
- include: cputuning/main.yml
|
- include: cputuning/main.yml
|
||||||
tags: pvc-cputuning
|
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
|
- name: restart server on first install
|
||||||
shell: 'sleep 3 && shutdown -r now "Ansible updates triggered"'
|
shell: 'sleep 3 && shutdown -r now "Ansible updates triggered"'
|
||||||
|
|
Loading…
Reference in New Issue