diff --git a/lib/ansible/modules/windows/win_nssm.py b/lib/ansible/modules/windows/win_nssm.py index f896d1e3f9..2fb8928f0b 100644 --- a/lib/ansible/modules/windows/win_nssm.py +++ b/lib/ansible/modules/windows/win_nssm.py @@ -58,7 +58,7 @@ options: - Use either this or C(app_parameters), not both. dependencies: description: - - Service dependencies that has to be started to trigger startup, separated by comma. + - Service dependencies that has to be started to trigger startup, separated by space. user: description: - User to be used for service startup. @@ -140,7 +140,7 @@ EXAMPLES = r''' - win_nssm: name: foo application: C:\windows\foo.exe - dependencies: 'adf,tcpip' + dependencies: 'adf tcpip' # Install and start the foo service with dedicated user - win_nssm: diff --git a/test/integration/targets/win_nssm/tasks/tests.yml b/test/integration/targets/win_nssm/tasks/tests.yml index 1ce69a11e7..b38884a464 100644 --- a/test/integration/targets/win_nssm/tasks/tests.yml +++ b/test/integration/targets/win_nssm/tasks/tests.yml @@ -61,7 +61,7 @@ name: '{{ test_service_name }}' application: C:\Windows\System32\cmd.exe start_mode: manual - dependencies: 'tcpip,dnscache' + dependencies: 'tcpip dnscache' user: '{{ test_win_nssm_username }}' password: '{{ test_win_nssm_password }}' stdout_file: '{{ test_win_nssm_path }}\log.txt'