summaryrefslogtreecommitdiff
path: root/ansible/roles/mssql02/tasks/main.yaml
blob: 64c24695990f02539e3261dc1d43cb86c138df51 (plain)
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
- name: wait for winrm to be available
  ansible.builtin.wait_for:
    host: "{{ ansible_host }}"
    port: "{{ ansible_port }}"
    timeout: 300
  delegate_to: localhost

- name: execute init.ps1
  import_tasks: init.yaml

- name: set hostname
  import_tasks: set_hostname.yaml

- name: reboot after hostname change
  import_tasks: reboot.yaml

- name: join domain and reboot
  import_tasks: join_domain.yaml

- name: execute setup-mssql.ps1
  import_tasks: setup_mssql.yaml

- name: reboot after mssql setup
  import_tasks: reboot.yaml

- name: pause 5 minutes for mssql setup to complete
  pause:
    minutes: 5

- name: execute setup-mssql-link.ps1
  import_tasks: setup_mssql_link.yaml

- name: reboot after mssql link setup
  import_tasks: reboot.yaml

- name: execute install-software.ps1
  import_tasks: install_software.yaml

- name: execute cleanup.ps1
  import_tasks: cleanup.yaml