Currently, the only option passed to tmpfs is exec so tmpfs is mounted with "exec" option.
We may need to pass extra options on some runners, like setting the size of tmpfs for instance (docker seems to default to 50% of the host memory), and only on specific hosts, so we need this to be somwhat configurable.
Add a new variable runner_tmpfs_options which defaults to ['exec'] and can be overridden at the host/group level.
Currently, the only option passed to tmpfs is
exec
so tmpfs is mounted with "exec" option. We may need to pass extra options on some runners, like setting the size of tmpfs for instance (docker seems to default to 50% of the host memory), and only on specific hosts, so we need this to be somwhat configurable.Add a new variable
runner_tmpfs_options
which defaults to['exec']
and can be overridden at the host/group level.Test, after setting a host to use:
running ansible in dry-run mode:
And for a hosts with no override, running ansible does not chasnge anything.