community.general/lib/ansible
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
..
cli metadata 1.1 2017-08-15 23:12:08 -07:00
compat Remove wildcard imports 2017-07-28 22:10:17 -07:00
config Correct config manager deprecation warning 2017-08-17 10:24:42 -04:00
errors Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
executor executor stats and task_executor pep8 error (#23651) 2017-08-18 08:55:48 -04:00
galaxy Removes container-enabled warning (#27578) 2017-08-01 12:51:03 -04:00
inventory Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
module_utils also strip strings to avoid spaces breaking match 2017-08-23 16:01:02 -04:00
modules Check Windows service status before nssm STOP (#28379) 2017-08-24 08:40:48 -04:00
parsing metadata 1.1 2017-08-15 23:12:08 -07:00
playbook Handle errors in jmespath in json_query better (#22109) 2017-08-17 17:16:35 -04:00
plugins Create persistent socket path using port and connection type (#28492) 2017-08-23 18:28:44 -04:00
template Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
utils exoscale: similar env vars as in cloudstack 2017-08-22 14:43:48 +02:00
vars optimize reserved names warning 2017-08-18 17:45:39 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Ansible Config part2 (#27448) 2017-08-15 16:38:59 -04:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00