-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
75 lines (62 loc) · 1.17 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
- name: install k8s
hosts: k8s
become: yes
vars_files:
- vars/main.yml
roles:
- role: hostname
tags: ['hostname']
- role: geerlingguy.swap
tags: ['swap', 'kubernetes']
- role: geerlingguy.docker
tags: ['docker']
- role: geerlingguy.kubernetes
tags: ['kubernetes']
- role: pip
tags: ['pip']
- name: install nfs
hosts: nfs
become: yes
roles:
- role: ansible-role-nfs
tags: ['nfs']
- name: set up hosts
hosts: k8s
become: yes
vars_files:
- vars/nexus.yml
- vars/jenkins.yml
roles:
- role: hosts
tags: ['hosts']
- name: pre pull images
hosts: k8s_slaves
become: yes
roles:
- role: docker_images
tags: ['images']
- name: install helm
hosts: k8s_master
become: yes
vars_files:
- vars/jenkins.yml
roles:
- role: helm
tags: ['helm']
- name: install nfs
hosts: nfs
become: yes
roles:
- role: ansible-role-nfs
tags: ['nfs']
- name: install infrastructure
hosts: k8s_master
become: yes
vars_files:
- vars/nexus.yml
- vars/jenkins.yml
- vars/gitlab.yml
roles:
- role: infrastructure
tags: ['infrastructure']