This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsite.yml
54 lines (44 loc) · 1.42 KB
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# http://docs.ansible.com/ansible/playbooks_environment.html
# environment:
# http_proxy: http://proxy.example.com:8080
---
- name: configure platform
hosts: localhost
gather_facts: False
become: True
vars_files:
- "vars/main.yml"
- "../global_vars.yml"
vars:
- GH_TOKEN: "{{ lookup('env', 'GH_TOKEN') }}"
- router_store_args: ''
- router_hunter_threads: "{{ lookup('env', 'CIF_HUNTER_THREADS') }}"
- router_hunter_advanced: "{{ lookup('env', 'CIF_HUNTER_ADVANCED') }}"
- router_gatherer_geo_fqdn: "{{ lookup('env', 'CIF_GATHERER_GEO_FQDN') }}"
pre_tasks:
- name: configure python
raw: sudo apt-get install python-minimal aptitude -y
- setup:
filter: ansible_*
- name: set store fact
set_fact:
router_store_store: 'elasticsearch'
router_store_nodes: "{{ CIF_ES }}"
when: CIF_ES is defined and CIF_ES != ""
- name: set build_sdist
set_fact:
cif_build_sdist: CIF_ANSIBLE_SDIST
when: CIF_ANSIBLE_SDIST is defined
- import_tasks: tasks/main.yml
roles:
- { role: elastic.elasticsearch,
es_config: {
node.data: true,
node.master: true,
},
es_version: "5.6.16",
es_instance_name: 'cif',
when: router_store_store is defined and router_store_store == 'elasticsearch'
}
- { role: csirtgadgets.cif, tags: role-cif }
- { role: nginx, tags: role-nginx }