forked from Orange-Cyberdefense/GOAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservers.yml
40 lines (36 loc) · 1.32 KB
/
servers.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
---
# Load datas
- import_playbook: data.yml
vars:
data_path: "../ad/{{domain_name}}/data/"
tags: 'data'
- name: "Install IIS"
hosts: iis
roles:
- { role: 'iis', tags: 'iis'}
- name: "Install MSSQL Express"
hosts: mssql
roles:
- { role: 'mssql', tags: 'mssql'}
- { role: 'mssql_link', tags: 'mssql, mssql_link'}
vars:
domain: "{{lab.hosts[dict_key].domain}}"
SQLSVCACCOUNT_NAME: "{{lab.hosts[dict_key].mssql.svcaccount}}"
SQLSVCACCOUNT: "{{domain}}\\{{SQLSVCACCOUNT_NAME}}"
SQLSVCPASSWORD: "{{lab.domains[domain].users[SQLSVCACCOUNT_NAME].password}}"
SQLYSADMIN: "{{SQLSVCACCOUNT}}"
domain_admin: "{{domain}}\\Administrator"
domain_admin_password: "{{lab.domains[domain].domain_password}}"
sql_sysadmins: "{{lab.hosts[dict_key].mssql.sysadmins | default([]) }}"
executeaslogin: "{{lab.hosts[dict_key].mssql.executeaslogin | default({}) }}"
executeasuser: "{{lab.hosts[dict_key].mssql.executeasuser | default({}) }}"
sa_password: "{{lab.hosts[dict_key].mssql.sa_password}}"
linked_servers: "{{lab.hosts[dict_key].mssql.linked_servers | default({}) }}"
- name: "Install SQL Server Management Studio"
hosts: mssql_ssms
roles:
- { role: 'mssql_ssms', tags: 'mssql_ssms'}
- name: "Install Webdav"
hosts: webdav
roles:
- { role: 'webdav', tags: 'webdav'}