mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-03-11 23:32:12 +01:00
Break test into multiple lines so that we can pass lint checks
This commit is contained in:
@@ -5,9 +5,18 @@
|
|||||||
failed_when: false
|
failed_when: false
|
||||||
changed_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:
|
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
|
- name: Activating cgroup support
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user