- name: install win_nssm
win_chocolatey:
name: nssm
- name: create and run service name service
win_nssm:
name: servicename
application: path
start_mode: auto
The service is created but not started( service status is blank ). I was able to start it manually (Hit the start button in windows services console) though. Then I tried to add another task:
- name: run servicename
win_service:
name: servicename
start_mode: auto
state: started
Then the service status is 'Paused' and I can't even started it manually.
As I understand, win_nssm suppose to not only create the service but also start the service correct? Am I using the module wrong?
Thank you so much for your help!