Files
community.general/lib/ansible/modules/windows
Kira Rose 46cd8ba7cd Check Windows service status before nssm STOP (#28379)
* Check Windows service status before nssm STOP

Add a condition on calling nssm STOP inside Nssm-Remove, to check whether or not a service has already been stopped. Currently nssm throws an exception:

```
failed: [...] (item=...) => {"changed": false, "failed": true, "item": "...", "msg": "an exception occurred when invoking NSSM: serviceName: STOP: The service has not been started."}
failed: [...] (item=...) => {"changed": false, "failed": true, "item": "...", "msg": "an exception occurred when invoking NSSM: serviceName: The service has not been started."}
```

Behaviour after change:

```
ok: [...] => (item=...)
ok: [...] => (item=...)
```

* Added named parameter to new Get-Service cmdlet
2017-08-24 08:40:48 -04:00
..
2017-02-06 19:32:00 -05:00
2017-02-23 22:38:17 -08:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2016-12-13 13:51:13 -05:00
2017-08-15 23:12:08 -07:00
2016-12-13 13:51:13 -05:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-01-17 20:21:04 -08:00
2017-08-15 23:12:08 -07:00
2017-01-27 13:23:01 -08:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00
2017-08-15 23:12:08 -07:00