-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsite.yml
89 lines (79 loc) · 1.62 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
76
77
78
79
80
81
82
83
84
85
# Playbook for Ansible Windows workshop setup.
---
- name: Provision EC2 Instances
hosts: localhost
gather_facts: no
vars_files:
- vars/main.yml
tags:
- manage-ec2-instances
roles:
- manage-ec2-instances
# Configure Active Directory
- name: Configure Active Directory Domain Controller
hosts: windows_domain_controllers
gather_facts: no
vars_files:
- vars/main.yml
tags:
- windows-ad-controller
roles:
- windows-ad-controller
# Configure Workstation host
- name: Configure Windows Workstation
hosts: windows_workstations
vars_files:
- vars/main.yml
gather_facts: True
tags:
- windows-workstation
roles:
- windows-common
- windows-workstation
# Configure Tower host
- name: Configure Ansible Host
hosts: tower
become: True
remote_user: ec2-user
gather_facts: True
vars_files:
- vars/main.yml
tags:
- ansible-tower
roles:
- ansible-tower
# Configure Windows Hosts
- name: Configure Windows Servers
hosts: windows
gather_facts: True
vars_files:
- vars/main.yml
tags:
- windows_hosts
roles:
- windows-common
# Configure GitLab Host
- name: Configure GitLab Host
hosts: gitlab
become: True
remote_user: ec2-user
gather_facts: True
vars_files:
- vars/main.yml
tags:
- gitlab
roles:
- { role: linux-common }
- { role: geerlingguy.gitlab }
# Run post-config separate to avoid handler restart issue...
- name: Gitlab Post Config
hosts: gitlab
become: True
remote_user: ec2-user
gather_facts: True
vars_files:
- vars/main.yml
tags:
- gitlab
roles:
- { role: gitlab-postconfig }