Compare commits
2 Commits
db86af7c51
...
0ee5a93b2d
Author | SHA1 | Date | |
---|---|---|---|
0ee5a93b2d | |||
b8278644b5 |
@ -2,11 +2,11 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Package: *
|
||||
Pin: release a={{ ansible_distribution_release }}
|
||||
Pin: release a={{ debian_codename }}
|
||||
Pin-Priority: 999
|
||||
|
||||
{% if 'base' in group_names %}
|
||||
Package: *
|
||||
Pin: release a={{ ansible_distribution_release }}-backports
|
||||
Pin: release a={{ debian_codename }}-backports
|
||||
Pin-Priority: -1
|
||||
{% endif %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
GRUB_DEFAULT=0
|
||||
GRUB_TIMEOUT=5
|
||||
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 }}"
|
||||
{% else %}
|
||||
GRUB_CMDLINE_LINUX="{{ grub_cmdline }}"
|
||||
|
@ -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"'
|
||||
|
Reference in New Issue
Block a user