soctools.yml 2 KB
Newer Older
1
2
3
4
---

- name: Start soctools cluster
  import_playbook: startsoctools.yml
5
  when: "'start' in ansible_run_tags or 'config' in ansible_run_tags"
6
7
8

- name: Stop soctools cluster
  import_playbook: stopsoctools.yml
9
  when: "'stop' in ansible_run_tags or 'stop-thehive' in ansible_run_tags or 'stop-keycloak' in ansible_run_tags or 'stop-cortex' in ansible_run_tags or 'stop-haproxy' in ansible_run_tags or 'stop-cassandra' in ansible_run_tags or 'stop-filebeat' in ansible_run_tags or 'stop-misp' in ansible_run_tags or 'stop-mysql' in ansible_run_tags or 'stop-nifi' in ansible_run_tags or 'stop-odfees' in ansible_run_tags or 'stop-odfekibana' in ansible_run_tags"
10

11
12
13
14
15
16
17
- name: Update soctools cluster configs
  import_playbook: update-config-soctools.yml
  when: "'update-config' in ansible_run_tags or 'update-keycloak-config' in ansible_run_tags or 'update-thehive-config' in ansible_run_tags or 'update-cortex-config' in ansible_run_tags or 'update-haproxy-config' in ansible_run_tags or 'update-cassandra-config' in ansible_run_tags or 'update-filebeat-config' in ansible_run_tags or 'update-misp-config' in ansible_run_tags or 'update-mysql-config' in ansible_run_tags or 'update-nifi-config' in ansible_run_tags or 'update-odfees-config' in ansible_run_tags or 'update-odfekibana-config' in ansible_run_tags"

- name: restart soctools cluster servics
  import_playbook: restart-soctools.yml
  when: "'restart' in ansible_run_tags or 'restart-thehive' in ansible_run_tags or 'restart-keycloak' in ansible_run_tags or 'restart-cortex' in ansible_run_tags or 'restart-haproxy' in ansible_run_tags or 'restart-cassandra' in ansible_run_tags or 'restart-filebeat' in ansible_run_tags or 'restart-misp' in ansible_run_tags or 'restart-mysql' in ansible_run_tags or 'restart-nifi' in ansible_run_tags or 'restart-odfees' in ansible_run_tags or 'restart-odfekibana' in ansible_run_tags"
Arne Øslebø's avatar
Arne Øslebø committed
18
19
20
21

- name: create thehive users
  import_playbook: create-thehive-users.yml
  when: "'create-thehive-users' in ansible_run_tags or 'createusers' in ansible_run_tags"