diff --git a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 index a80f2842..d221fc1d 100644 --- a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 +++ b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 @@ -100,13 +100,15 @@ fstype: swap state: absent loop: ["none", "swap"] - - name: System Configuration | Kernel modules (1) + - name: System Configuration | Create Kernel modules ansible.builtin.copy: dest: "/etc/modules-load.d/{% raw %}{{ item }}{% endraw %}.conf" mode: "0644" content: "{% raw %}{{ item }}{% endraw %}" loop: ["br_netfilter", "ceph", "ip_vs", "ip_vs_rr", "nbd", "overlay", "rbd"] - - name: System Configuration | Kernel modules (2) + register: modules_status + - name: System Configuration | Reload Kernel modules # noqa: no-changed-when no-handler + when: modules_status.changed ansible.builtin.systemd: name: systemd-modules-load state: restarted