ikke-t / podman-container-systemd

creates systemd files and creates containers using podman
118 stars 44 forks source link

Check if unprivileged_userns_clone is supported by kernel before runn… #16

Closed touchardv closed 4 years ago

touchardv commented 4 years ago

With raspbian kernel this task would fail:

TASK [podman_container_systemd : Allow unprivileged users on Debian] > *** fatal: [XXX]: FAILED! => {"changed": false, "msg": "Failed to reload sysctl: sysctl: cannot stat /proc/sys/kernel/unprivileged_userns_clone: No such file or directory\n"}

This merge request is adding a check for this kernel parameter before performing the sysctl task.

ikke-t commented 4 years ago

Thanks