main.yml 511 Bytes
Newer Older
Oliver Lowe's avatar
Oliver Lowe committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: restart mongod
  service:
    name: mongod
    enabled: yes
    state: restarted

- name: set mongodb compatibility
  command: 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: \"4.0\" } )"'

- name: restart elasticsearch
  service:
    name: elasticsearch
    enabled: yes
    state: restarted

17
18
19
20
21
22
- name: restart nginx
  service:
    name: nginx
    enabled: True
    state: restarted

Oliver Lowe's avatar
Oliver Lowe committed
23
24
25
26
27
- name: restart graylog
  service:
    name: graylog-server
    enabled: yes
    state: restarted