I've done some changes in your role in order to be able to set the argument sysctl_file of the sysctl module.
This change has been tested with molecule-vagrant and I've added the scenario in the repo too.
My changes are in https://github.com/apatard/ansible-role-sysctl.
If you're interested, I can provide a PR.
[ btw, I'm not sure that the default scenario is really useful since the tasks is skipped on containers ]
I've done some changes in your role in order to be able to set the argument
sysctl_fileof thesysctlmodule.This change has been tested with molecule-vagrant and I've added the scenario in the repo too.
My changes are in https://github.com/apatard/ansible-role-sysctl.
If you're interested, I can provide a PR.
[ btw, I'm not sure that the default scenario is really useful since the tasks is skipped on containers ]