-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfi-b.unam.mx.ansible.yml
77 lines (63 loc) · 1.91 KB
/
fi-b.unam.mx.ansible.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
- name: Setup full lidsol.fi-b.unam.mx with services
hosts: lidsol.fi-b.unam.mx
become: true
tasks:
- name: Essential configuration
ansible.builtin.import_tasks:
file: tasks/essentials.ansible.yml
- name: Setup firewalld
ansible.builtin.apt:
name: firewalld
state: present
- name: Enable firewalld
ansible.builtin.service:
name: firewalld
enabled: true
state: started
- name: Allow services on firewalld
ansible.posix.firewalld:
service: "{{ item }}"
permanent: true
state: enabled
immediate: true
with_items:
- http
- https
- ssh
- rsyncd
- name: Allow ports on firewalld
ansible.posix.firewalld:
port: "{{ item }}"
permanent: true
state: enabled
immediate: true
with_items:
- 9001/tcp
- name: Prometheus node_exporter
ansible.builtin.import_tasks:
file: tasks/node_exporter.ansible.yml
- name: Prometheus install
ansible.builtin.import_tasks:
file: tasks/prometheus.ansible.yml
- name: Grafana install
ansible.builtin.import_tasks:
file: tasks/grafana.ansible.yml
- name: Disk monitoring and mantainance script
ansible.builtin.import_tasks:
file: tasks/disk.ansible.yml
- name: Tor node
ansible.builtin.import_tasks:
file: tasks/tor-node.ansible.yml
- name: FTPSync installation and configuration
ansible.builtin.import_tasks:
file: tasks/ftpsync.ansible.yml
- name: Rsyncd install and configuration
ansible.builtin.import_tasks:
file: tasks/rsyncd.ansible.yml
- name: Setup nginx for http(s) services
ansible.builtin.import_tasks:
file: tasks/nginx.ansible.yml
- name: Mirrors configuration
ansible.builtin.import_tasks:
file: tasks/mirrors.ansible.yml