mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-04 00:01:30 -07:00
Use a consistent RLIMIT_NOFILE for ansible-test.
This commit is contained in:
parent
d99728d9e6
commit
e8a31a12be
5 changed files with 38 additions and 12 deletions
|
@ -4,6 +4,10 @@ from __future__ import absolute_import, print_function
|
|||
|
||||
import os
|
||||
|
||||
from lib.constants import (
|
||||
SOFT_RLIMIT_NOFILE,
|
||||
)
|
||||
|
||||
from lib.util import (
|
||||
common_environment,
|
||||
ApplicationError,
|
||||
|
@ -40,7 +44,7 @@ def ansible_environment(args, color=True, ansible_config=None):
|
|||
raise ApplicationError('Configuration not found: %s' % ansible_config)
|
||||
|
||||
ansible = dict(
|
||||
ANSIBLE_PYTHON_MODULE_RLIMIT_NOFILE='1024',
|
||||
ANSIBLE_PYTHON_MODULE_RLIMIT_NOFILE=str(SOFT_RLIMIT_NOFILE),
|
||||
ANSIBLE_FORCE_COLOR='%s' % 'true' if args.color and color else 'false',
|
||||
ANSIBLE_DEPRECATION_WARNINGS='false',
|
||||
ANSIBLE_HOST_KEY_CHECKING='false',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue