2022-05-02 15:00:29 -05:00
|
|
|
---
|
|
|
|
- name: Sharingan packages
|
|
|
|
become: yes
|
|
|
|
register: sharingan_packages
|
|
|
|
package:
|
|
|
|
name:
|
|
|
|
- elasticsearch
|
2024-03-07 12:27:21 -06:00
|
|
|
- mongodb-bin
|
|
|
|
- mongodb-tools-bin
|
2022-05-02 15:00:29 -05:00
|
|
|
- graylog
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Sharingan services
|
|
|
|
become: yes
|
|
|
|
loop:
|
|
|
|
- elasticsearch
|
|
|
|
- mongodb
|
|
|
|
- graylog
|
|
|
|
service:
|
2022-11-20 20:03:01 -06:00
|
|
|
name: "{{ item }}"
|
2022-05-02 15:00:29 -05:00
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
|
|
|
|
- name: Sharingan backups directory
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /usr/local/backups/elasticsearch
|
|
|
|
state: directory
|
|
|
|
owner: elasticsearch
|
|
|
|
group: elasticsearch
|
|
|
|
mode: 0770
|
|
|
|
|
|
|
|
- name: Set Sharingan backups
|
|
|
|
command: "curl -X PUT localhost:9200/_snapshot/my_backup?pretty -H 'Content-Type: application/json' -d '{ type: fs, settings: { location: /usr/local/backup/elasticsearch, compress: true } }'"
|