fix(ansible): add kernel role to explicity enable modules

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-05-01 08:46:30 -04:00
1 parent 375d41d313
commit 472a294c1e
3 files changed
+31

No files matched your search

@@ -0,0 +1,19 @@
---
- name: Enable kernel modules runtime
community.general.modprobe:
name: "{{ item }}"
state: present
loop:
- br_netfilter
- overlay
- rbd
- name: Enable kernel modules on boot
ansible.builtin.copy:
mode: 0644
content: "{{ item }}"
dest: "/etc/modules-load.d/{{ item }}.conf"
loop:
- br_netfilter
- overlay
- rbd
@@ -7,6 +7,10 @@
tags:
- packages
- import_tasks: kernel.yml
tags:
- kernel
- include: network.yml
tags:
- network
@@ -15,19 +15,27 @@
name:
- apt-transport-https
- arptables
- ebtables
- ca-certificates
- curl
- ebtables
- gdisk
- hdparm
- htop
- iputils-ping
- ipvsadm
- lvm2
- nano
- net-tools
- nfs-common
- nvme-cli
- open-iscsi
- psmisc
- smartmontools
- socat
- software-properties-common
- unattended-upgrades
- unzip
install_recommends: false
update_cache: true
cache_valid_time: 3600