Files
sf_databuffer/operation-tools/stop_cluster.yml

49 lines
1005 B
YAML

- name: stop data api
hosts: data_api
become: true
tasks:
- name: stop data-api
systemd:
state: stopped
name: data-api
- name: stop nginx
systemd:
state: stopped
name: nginx
- name: stop dispatcher api
hosts: dispatcher_api
become: true
tasks:
- name: stop dispatcher-api
systemd:
state: stopped
name: dispatcher-api
- name: stop nginx
systemd:
state: stopped
name: nginx
- name: stop nodes
hosts: databuffer_cluster
become: true
tasks:
- name: stop daq-dispatcher-node
systemd:
state: stopped
name: daq-dispatcher-node
- name: stop daq-query-node
systemd:
state: stopped
name: daq-query-node
- name: Remove sources
file:
path: /home/daqusr/.config/daq/stores/sources
state: absent
- name: Remove streamers
file:
path: /home/daqusr/.config/daq/stores/streamers
state: absent