-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.yml
61 lines (49 loc) · 1.24 KB
/
main.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
---
- name: Install Netbox
hosts: netbox
become: yes
environment:
DJANGO_SUPERUSER_PASSWORD: "{{ nb_password }}"
vars_files:
- config.yml
- secret.yml
tasks:
- name: Checking OS version
meta: end_play
when: ansible_distribution != 'Ubuntu' or ansible_distribution_version != '22.04'
- name: Install preliminary packages
import_tasks: base/initial.yml
tags:
- initial
- name: Install and configure PostgreSQL
import_tasks: base/postgres.yml
tags:
- postgres
- name: Install Redis
import_tasks: base/redis.yml
tags:
- redis
- name: Download and install Netbox
import_tasks: base/netbox.yml
tags:
- netbox
- name: Run Netbox Upgrade script
import_tasks: base/upgrade.yml
tags:
- upgrade
- name: Create Netbox superuser
import_tasks: base/superuser.yml
tags:
- superuser
- name: Create Housekeeping task and timer
import_tasks: base/housekeeping.yml
tags:
- housekeeping
- name: Install Gunicorn
import_tasks: base/gunicorn.yml
tags:
- gunicorn
- name: Install nginx
import_tasks: base/http.yml
tags:
- nginx