From 0cd3b99406b0bf3fc4e89d688c58f2c6b29cbfe2 Mon Sep 17 00:00:00 2001 From: Akos Balla Date: Fri, 27 Oct 2023 20:08:35 +0200 Subject: [PATCH] modprobe dependencies --- collections/requirements.yml | 2 ++ meta/main.yml | 2 +- tasks/os.yml | 2 +- tasks/packages.yml | 4 ++-- tasks/wireguard.yml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/collections/requirements.yml b/collections/requirements.yml index 5a88281..8a51ac2 100644 --- a/collections/requirements.yml +++ b/collections/requirements.yml @@ -2,3 +2,5 @@ collections: - name: ansible.posix version: 1.5.4 + - name: community.general + version: 7.5.0 diff --git a/meta/main.yml b/meta/main.yml index 75b44f2..aebe4ad 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -55,7 +55,7 @@ dependencies: [] # if you add dependencies to this list. collections: - ansible.posix - - community.crypto - community.general + - community.crypto - community.dns - community.mysql diff --git a/tasks/os.yml b/tasks/os.yml index fc8aa1f..3c9e551 100644 --- a/tasks/os.yml +++ b/tasks/os.yml @@ -83,7 +83,7 @@ - ldap - postfixadmin - name: Enable ip_conntrack - modprobe: + community.general.modprobe: name: ip_conntrack state: present tags: wireguard diff --git a/tasks/packages.yml b/tasks/packages.yml index ea6ea72..5fee9ff 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -521,7 +521,7 @@ tags: wireguard block: - name: Load the WireGuard kernel module - modprobe: + community.general.modprobe: name: wireguard rescue: - name: Install UEK packages @@ -535,7 +535,7 @@ reboot_timeout: 600 msg: "Reboot initiated by Ansible to enable WireGuard" - name: Load the WireGuard kernel module - modprobe: + community.general.modprobe: name: wireguard - name: Install PEAR packages tags: horde diff --git a/tasks/wireguard.yml b/tasks/wireguard.yml index 4be781c..0aca529 100644 --- a/tasks/wireguard.yml +++ b/tasks/wireguard.yml @@ -4,7 +4,7 @@ vars: port: "{{ wireguard.listen_port }}/udp" - name: Load kernel modules - modprobe: + community.general.modprobe: name: "{{ item }}" loop: - wireguard