Skip to content

Commit b1ea429

Browse files
committed
Mount /lib/modules inside containers during tests
The modprobe module now checks for builtins, which aren't available inside LXC containers. see: ansible/ansible#37150
1 parent 2e6d22e commit b1ea429

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/install.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
- profile: debian-stretch
1818
prefix: proxmox-5-
1919
test_hosts_per_profile: 3
20+
container_config:
21+
- "lxc.apparmor.profile = unconfined"
22+
- "lxc.mount.auto = proc:rw sys:rw cgroup-full:rw"
23+
- "lxc.cgroup.devices.allow = a *:* rmw"
24+
- "lxc.mount.entry = /lib/modules/{{ ansible_kernel }} lib/modules/{{ ansible_kernel }} none bind,create=dir,ro 0 0"
2025

2126
# Run the following within the containers in the inventory
2227
- hosts: all

0 commit comments

Comments
 (0)