-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall-config-all-main-host.yml
More file actions
82 lines (71 loc) · 2.42 KB
/
install-config-all-main-host.yml
File metadata and controls
82 lines (71 loc) · 2.42 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
- hosts: localhost
gather_facts: no
become: yes
tasks:
- name: "[plbk-1]"
include_role:
name: common
vars:
role_name_fact:
- venv_setup
- zkg_install
- corelight_client_install
- ansible_install
- suricata_update_install
- suricata_update_config
- suricata_config_cron_job
- hosts: main_hosts
debugger: never
# strategy: host_pinned
become: yes
gather_facts: no
tasks:
- name: "[plbk-2] Gather Facts"
setup:
when:
- "'physical_sensors' not in group_names"
- name: "[plbk-3] Include common role to create groups"
import_role:
name: common
vars:
sending_role: none
- name: "[plbk-4] Include Python3 virtual environment setup role"
include_role:
name: venv_setup
when:
- "ansible_local.corelight_ansible_roles.venv.setup|d('failed') == 'failed'"
- name: "[plbk-5] Include ZKG install role"
include_role:
name: zkg_install
when:
- "ansible_local.corelight_ansible_roles.zkg.install|d('failed') == 'failed'"
- name: "[plbk-6] Include Corelight-client install role"
include_role:
name: corelight_client_install
when:
- "ansible_local.corelight_ansible_roles.corelight_client.install|d('failed') == 'failed'"
- name: "[plbk-7] Include Ansible install role"
include_role:
name: ansible_install
when:
- "ansible_local.corelight_ansible_roles.ansible.install|d('failed') == 'failed'"
- name: "[plbk-8] Include Suricata-update install role"
include_role:
name: suricata_update_install
when:
- "ansible_local.corelight_ansible_roles.suricata_update.install|d('failed') == 'failed'"
- "inventory_hostname == suricata_update_host"
- name: "[plbk-9] Include suricata-update config role"
include_role:
name: suricata_update_config
when:
- "ansible_local.corelight_ansible_roles.suricata_update.config|d('failed') == 'failed'"
- inventory_hostname == suricata_update_host
- name: "[plbk-10] Include suricata cron job role"
include_role:
name: suricata_config_cron_job
when:
- "ansible_local.corelight_ansible_roles.suricata_update_cron_job.config|d('failed') == 'failed'"
- inventory_hostname == cron_job_host
- perform_cron_job_tasks|d(true) is true