fix(ansible): add kernel role to explicity enable modules
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
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:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
|
- import_tasks: kernel.yml
|
||||||
|
tags:
|
||||||
|
- kernel
|
||||||
|
|
||||||
- include: network.yml
|
- include: network.yml
|
||||||
tags:
|
tags:
|
||||||
- network
|
- network
|
||||||
|
|||||||
@@ -15,19 +15,27 @@
|
|||||||
name:
|
name:
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- arptables
|
- arptables
|
||||||
|
- ebtables
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- curl
|
- curl
|
||||||
- ebtables
|
- ebtables
|
||||||
|
- gdisk
|
||||||
|
- hdparm
|
||||||
|
- htop
|
||||||
- iputils-ping
|
- iputils-ping
|
||||||
- ipvsadm
|
- ipvsadm
|
||||||
- lvm2
|
- lvm2
|
||||||
|
- nano
|
||||||
- net-tools
|
- net-tools
|
||||||
- nfs-common
|
- nfs-common
|
||||||
|
- nvme-cli
|
||||||
- open-iscsi
|
- open-iscsi
|
||||||
- psmisc
|
- psmisc
|
||||||
- smartmontools
|
- smartmontools
|
||||||
|
- socat
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
- unattended-upgrades
|
- unattended-upgrades
|
||||||
|
- unzip
|
||||||
install_recommends: false
|
install_recommends: false
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|||||||
Reference in new issue
Block a user