mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-03-12 07:42:11 +01:00
Compare commits
2 Commits
a7a932320d
...
8c6059a020
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c6059a020 | ||
|
|
cd38ba51e3 |
@@ -5,9 +5,18 @@
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: Set cmdline path based on Debian version and boot_cmdline_path result
|
||||
- name: Set cmdline path based on Debian version and command result
|
||||
set_fact:
|
||||
cmdline_path: "{{ (boot_cmdline_path.rc == 0 and ansible_facts['distribution'] == 'Debian' and ansible_facts['distribution_version'] is version('bookworm', '<')) | ternary('/boot/cmdline.txt', '/boot/firmware/cmdline.txt') }}"
|
||||
cmdline_path: >-
|
||||
{{
|
||||
(
|
||||
boot_cmdline_path.rc == 0 and
|
||||
ansible_facts.lsb.description | default('') is match('Debian.*(?!(bookworm|sid))')
|
||||
) | ternary(
|
||||
'/boot/cmdline.txt',
|
||||
'/boot/firmware/cmdline.txt'
|
||||
)
|
||||
}}
|
||||
|
||||
- name: Activating cgroup support
|
||||
lineinfile:
|
||||
|
||||
Reference in New Issue
Block a user