Allow setting resource.RLIMIT_NOFILE in modules (#51989)

This commit is contained in:
Matt Clay 2019-02-15 17:52:35 -08:00 committed by GitHub
parent 1db6d5598a
commit f5c92f6bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 136 additions and 1 deletions

View file

@ -40,6 +40,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_FORCE_COLOR='%s' % 'true' if args.color and color else 'false',
ANSIBLE_DEPRECATION_WARNINGS='false',
ANSIBLE_HOST_KEY_CHECKING='false',