Fix setup task

This commit is contained in:
Sonny Bakker 2026-01-09 20:51:35 +01:00
parent cea9437258
commit 1b18523662

View file

@ -139,12 +139,12 @@
dest: "{{ item.dest }}" dest: "{{ item.dest }}"
mode: "0755" mode: "0755"
loop: "{{ modprobe_templates }}" loop: "{{ modprobe_templates }}"
when: modprobe_templates when: "modprobe_templates | length > 0"
- name: Copy kernel parameters template - name: Copy kernel parameters template
become: true become: true
ansible.builtin.template: ansible.builtin.template:
src: "templates/{{ ansible_hostname }}/cmdline.j2" src: "templates/{{ ansible_facts['hostname'] }}/cmdline.j2"
dest: "/etc/kernel/cmdline" dest: "/etc/kernel/cmdline"
mode: "0755" mode: "0755"