diff options
author | heqnx <root@heqnx.com> | 2025-07-14 20:11:47 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-07-14 20:11:47 +0300 |
commit | e70ce7f0dc0dd35f9ad985633f521ffc0e36f0a2 (patch) | |
tree | c897782e27ddb84faf80b7030509fafa3466d3d2 /ansible/roles/mssql02/tasks/main.yaml | |
parent | 116a86865e3f0636bf5821e066d9b6956f0363e0 (diff) | |
download | ansible-active-directory-range-e70ce7f0dc0dd35f9ad985633f521ffc0e36f0a2.tar.gz ansible-active-directory-range-e70ce7f0dc0dd35f9ad985633f521ffc0e36f0a2.zip |
added mssql02 linked to websql01
Diffstat (limited to 'ansible/roles/mssql02/tasks/main.yaml')
-rw-r--r-- | ansible/roles/mssql02/tasks/main.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ansible/roles/mssql02/tasks/main.yaml b/ansible/roles/mssql02/tasks/main.yaml new file mode 100644 index 0000000..64c2469 --- /dev/null +++ b/ansible/roles/mssql02/tasks/main.yaml @@ -0,0 +1,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 |