Skip to content

Commit 4b22cc4

Browse files
committed
Enable server process forking by default on RedHat
The init scripts that are provided assume that forking is enabled by default. This has been left in defaults, to preserve the capability for users to override this option.
1 parent 255dc39 commit 4b22cc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ mongodb_net_maxconns: 65536 # Max number of simultaneous co
2323
mongodb_net_port: 27017 # Specify port number
2424

2525
## processManagement Options
26-
mongodb_processmanagement_fork: false # Fork server process
26+
# Fork server process
27+
# Enabled by default for RedHat as the init scripts assume forking is enabled.
28+
mongodb_processmanagement_fork: "{{ 'RedHat' == ansible_os_family }}"
2729

2830
## security Options
2931
# Disable or enable security. Possible values: 'disabled', 'enabled'

0 commit comments

Comments
 (0)