From bf28fbaebfe915c09f7b9b1b482330b5f4416a4e Mon Sep 17 00:00:00 2001 From: Devin Buhl Date: Mon, 11 Dec 2023 15:14:17 -0500 Subject: [PATCH] fix: instead of defining modules twice just restart the modules-load service --- .../templates/ansible/playbooks/cluster-prepare.yaml.j2 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 index 083dd8ae..a80f2842 100644 --- a/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 +++ b/bootstrap/templates/ansible/playbooks/cluster-prepare.yaml.j2 @@ -101,16 +101,15 @@ state: absent loop: ["none", "swap"] - name: System Configuration | Kernel modules (1) - community.general.modprobe: - name: "{% raw %}{{ item }}{% endraw %}" - state: present - loop: ["br_netfilter", "ceph", "ip_vs", "ip_vs_rr", "nbd", "overlay", "rbd"] - - name: System Configuration | Kernel modules (2) 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) + ansible.builtin.systemd: + name: systemd-modules-load + state: restarted - name: System Configuration | Sysctl ansible.posix.sysctl: name: "{% raw %}{{ item.key }}{% endraw %}"