---
# Stop all service mariadb, gerrit, ...
- name: Stop services
  service: name={{ item }} state=stopped
  ignore_errors: yes
  with_items:
    - monit
    - httpd
    - jenkins
    - zuul
    - zuul-merger
    - nodepool
    - gerrit
    - etherpad
    - lodgeit
    - mariadb
    - gerritbot
    - grafana-server
    - postfix
    - openstack-gnocchi-api
    - openstack-gnocchi-metricd
    - openstack-gnocchi-statsd
    - murmurd
    - log-gearman-client
    - log-gearman-worker
    - elasticsearch
    - logstash
    - storyboard

---
# Stop all service mariadb, gerrit, ...
- name: Stop services
  service: name={{ item }} state=stopped
  ignore_errors: yes
  with_items:
    - monit
    - httpd
    - jenkins
    - zuul
    - zuul-merger
    - nodepool
    - gerrit
    - etherpad
    - lodgeit
    - mariadb
    - gerritbot
    - grafana-server
    - postfix
    - openstack-gnocchi-api
    - openstack-gnocchi-metricd
    - openstack-gnocchi-statsd
    - murmurd
    - log-gearman-client
    - log-gearman-worker
    - elasticsearch
    - logstash
    - kibana
    - storyboard

Fix kibana service not stopped during the upgrade
Fix kibana service not stopped during the upgrade

This can cause trouble during an upgrade between two
version of SF with kibana activated.

fatal: [managesf.preprod.softwarefactory-project.io]:
FAILED! => {"changed": false, "failed": true, "msg":
usermod: user kibana is currently used by
process 16328\n", "name": "kibana", "rc": 8}

Change-Id: Ia28eb760d97501f64492846ff48358b53907eeb1
Co-Authored-By: Matthieu Huin <a646cf1a7befeeeb1120aafe65df6f2a3d5c68e1@redhat.com>
