Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel SP
8c6059a020 Merge cd38ba51e3 into 3b74985767 2024-02-27 20:26:06 +00:00
Daniel San Pedro
cd38ba51e3 Break test into multiple lines so that we can pass lint checks 2024-02-27 15:26:01 -05:00

View File

@@ -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: