|
14 | 14 | # Data file in a different disk |
15 | 15 |
|
16 | 16 |
|
17 | | -- name: "WIN-SQL: Create run flag directory" |
| 17 | +- name: "4.4.0.1 MSSQL - Create run flag directory" |
18 | 18 | ansible.windows.win_file: |
19 | 19 | path: '{{ sap_deployment_automation }}\{{ sap_sid | upper }}' |
20 | 20 | state: directory |
21 | 21 |
|
22 | | -- name: "WIN-SQL: check if SQL Server service is started" |
| 22 | +- name: "4.4.0.1 MSSQL - Check if SQL Server service is started" |
23 | 23 | ansible.windows.win_service_info: |
24 | 24 | name: MSSQLServer |
25 | 25 | register: sql_service |
26 | 26 |
|
27 | | -- name: "WIN-SQL: SQL4SAP Install || Flag File" |
| 27 | +- name: "4.4.0.1 MSSQL - SQL4SAP Install || Flag File" |
28 | 28 | ansible.windows.win_file: |
29 | 29 | path: '{{ sap_deployment_automation }}\{{ sap_sid | upper }}\sap_deployment_sqldb.txt' |
30 | 30 | state: touch |
31 | 31 | when: sql_service.exists |
32 | 32 |
|
33 | | -# - name: "WIN-SQL: Install reset" |
| 33 | +# - name: "4.4.0.1 MSSQL - Install reset" |
34 | 34 | # ansible.windows.win_file: |
35 | 35 | # path: '{{ target_media_location }}\sap_deployment_automation\{{ sap_sid | upper }}\sap_deployment_sqldb.txt' |
36 | 36 | # state: absent |
37 | 37 | # when: reinstall |
38 | 38 |
|
39 | | -- name: "WIN-SQL: check if installed" |
| 39 | +- name: "4.4.0.1 MSSQL - Check if installed" |
40 | 40 | ansible.windows.win_stat: |
41 | 41 | path: '{{ sap_deployment_automation }}\{{ sap_sid | upper }}\sap_deployment_sqldb.txt' |
42 | 42 | register: sql_installed |
43 | 43 |
|
44 | 44 | # +------------------------------------4--------------------------------------*/ |
45 | | -- name: "WIN-SQL: check if SQL4SAP is installed" |
| 45 | +- name: "4.4.0.1 MSSQL - Check if SQL4SAP is installed" |
46 | 46 | block: |
47 | | - - name: "WIN-SQL: Install status" |
| 47 | + - name: "4.4.0.1 MSSQL - Install status" |
48 | 48 | ansible.builtin.debug: |
49 | | - msg: "WIN-SQL: is already installed" |
| 49 | + msg: "4.4.0.1 MSSQL - is already installed" |
50 | 50 |
|
51 | | - - name: "WIN-SQL:: - return value" |
| 51 | + - name: "4.4.0.1 MSSQL - return value" |
52 | 52 | ansible.builtin.set_fact: |
53 | 53 | sql4sap_already_installed: true |
54 | 54 |
|
55 | 55 | when: |
56 | 56 | - sql_installed.stat.exists |
57 | 57 |
|
58 | 58 |
|
59 | | -- name: "WIN-SQL: Install from Microsoft bits" |
| 59 | +- name: "4.4.0.1 MSSQL - Install from Microsoft bits" |
60 | 60 | block: |
61 | | - - name: "WIN-SQL: Progress" |
| 61 | + - name: "4.4.0.1 MSSQL - Progress" |
62 | 62 | ansible.builtin.debug: |
63 | 63 | msg: "Start SQL4SAP Installation" |
64 | 64 |
|
65 | | - - name: "WIN-SQL: Install SQL4SAP on {{ ansible_hostname }}" |
| 65 | + - name: "4.4.0.1 MSSQL - Install SQL4SAP on {{ ansible_hostname }}" |
66 | 66 | ansible.windows.win_shell: | |
67 | 67 | {{ download_directory_windows }}\{{ mssserver_version }}\SQL4SAP.bat -d |
68 | 68 | args: |
|
75 | 75 | register: sql_install_output |
76 | 76 | failed_when: sql_install_output.rc != 0 |
77 | 77 |
|
78 | | - - name: "WIN-SQL: Installation results" |
| 78 | + - name: "4.4.0.1 MSSQL - Installation results" |
79 | 79 | ansible.builtin.debug: |
80 | 80 | msg: "SQL4SAP Installation succeeded" |
81 | 81 | changed_when: true |
|
84 | 84 | - sql_install_output.rc == 0 |
85 | 85 | - sql_install_output.stdout | length > 0 |
86 | 86 | - sql_install_output.stdout is search("Execution successful") |
87 | | - notify: "WIN-SQL: Restart SQL Server VM" |
| 87 | + notify: "4.4.0 MSSQL - Restart SQL Server VM" |
88 | 88 |
|
89 | 89 | - name: "Force all notified handlers to run now" |
90 | 90 | ansible.builtin.meta: flush_handlers |
91 | 91 |
|
92 | | - - name: "WIN-SQL: Installation results" |
| 92 | + - name: "4.4.0.1 MSSQL - Installation results" |
93 | 93 | ansible.builtin.debug: |
94 | | - msg: "WIN-SQL: A reboot is pending. We will restart the machine, so please start SQL4SAP installation again." |
| 94 | + msg: "4.4.0.1 MSSQL - A reboot is pending. We will restart the machine, so please start SQL4SAP installation again." |
95 | 95 | changed_when: true |
96 | 96 | when: |
97 | 97 | - sql_install_output.rc is defined |
98 | 98 | - sql_install_output.rc == 0 |
99 | 99 | - sql_install_output.stdout | length > 0 |
100 | 100 | - sql_install_output.stdout is search("A reboot is pending.") |
101 | | - notify: "WIN-SQL: Restart SQL Server VM" |
| 101 | + notify: "4.4.0 MSSQL - Restart SQL Server VM" |
102 | 102 |
|
103 | 103 | - name: "Force all notified handlers to run now" |
104 | 104 | ansible.builtin.meta: flush_handlers |
105 | 105 |
|
106 | | - - name: "WIN-SQL: Installation results" |
| 106 | + - name: "4.4.0.1 MSSQL - Installation results" |
107 | 107 | ansible.builtin.debug: |
108 | 108 | msg: |
109 | | - - "SQL4SAP Installation failed, another installation might be already exist" |
110 | | - - "SQL4SAP output: {{ sql_install_output }}" |
| 109 | + - "4.4.0.1 MSSQL - Installation failed, another installation might be already exist" |
| 110 | + - "4.4.0.1 MSSQL - output: {{ sql_install_output }}" |
111 | 111 | when: |
112 | 112 | - sql_install_output.rc is defined |
113 | 113 | - sql_install_output.rc == 0 |
114 | 114 | - sql_install_output.stdout | length > 0 |
115 | 115 | - sql_install_output.stdout is search("Error during execution") |
116 | 116 |
|
117 | | - - name: "WIN-SQL: SQL4SAP Install || Flag File" |
| 117 | + - name: "4.4.0.1 MSSQL - SQL4SAP Install || Flag File" |
118 | 118 | ansible.windows.win_file: |
119 | 119 | path: '{{ sap_deployment_automation }}\{{ sap_sid | upper }}\sap_deployment_sqldb.txt' |
120 | 120 | state: touch |
|
126 | 126 | - not sql_installed.stat.exists |
127 | 127 | - use_sql_for_SAP |
128 | 128 |
|
129 | | -- name: "WIN-SQL: Install from Microsoft " |
| 129 | +- name: "4.4.0.1 MSSQL - Install from Microsoft " |
130 | 130 | block: |
131 | 131 |
|
132 | | - - name: "WIN-SQL: Install SQL4SAP on {{ ansible_hostname }}" |
| 132 | + - name: "4.4.0.1 MSSQL - Install SQL4SAP on {{ ansible_hostname }}" |
133 | 133 | ansible.windows.win_shell: | |
134 | 134 | {{ download_directory_windows }}\{{ mssserver_version }}\SQL4SAP.bat -d |
135 | 135 | args: |
|
142 | 142 | register: sql_install_output |
143 | 143 | failed_when: sql_install_output.rc != 0 |
144 | 144 |
|
145 | | - - name: "WIN-SQL: Installation results" |
| 145 | + - name: "4.4.0.1 MSSQL - Installation results" |
146 | 146 | ansible.builtin.debug: |
147 | | - msg: "SQL4SAP Installation succeeded" |
| 147 | + msg: "4.4.0.1 MSSQL - Installation succeeded" |
148 | 148 | changed_when: true |
149 | 149 | when: |
150 | 150 | - sql_install_output.rc is defined |
151 | 151 | - sql_install_output.rc == 0 |
152 | 152 | - sql_install_output.stdout | length > 0 |
153 | 153 | - sql_install_output.stdout is search("Execution successful") |
154 | | - notify: "WIN-SQL: Restart SQL Server VM" |
| 154 | + notify: "4.4.0 MSSQL - Restart SQL Server VM" |
155 | 155 |
|
156 | 156 | - name: "Force all notified handlers to run now" |
157 | 157 | ansible.builtin.meta: flush_handlers |
158 | 158 |
|
159 | | - - name: "WIN-SQL: Installation results" |
| 159 | + - name: "4.4.0.1 MSSQL - Installation results" |
160 | 160 | ansible.builtin.debug: |
161 | | - msg: "WIN-SQL: A reboot is pending. We will restart the machine, so please start SQL4SAP installation again." |
| 161 | + msg: "4.4.0.1 MSSQL - A reboot is pending. We will restart the machine, so please start SQL4SAP installation again." |
162 | 162 | changed_when: true |
163 | 163 | when: |
164 | 164 | - sql_install_output.rc is defined |
165 | 165 | - sql_install_output.rc == 0 |
166 | 166 | - sql_install_output.stdout | length > 0 |
167 | 167 | - sql_install_output.stdout is search("A reboot is pending.") |
168 | | - notify: "WIN-SQL: Restart SQL Server VM" |
| 168 | + notify: "4.4.0 MSSQL - Restart SQL Server VM" |
169 | 169 |
|
170 | | - - name: "Force all notified handlers to run now" |
| 170 | + - name: "4.4.0.1 MSSQL - Force all notified handlers to run now" |
171 | 171 | ansible.builtin.meta: flush_handlers |
172 | 172 |
|
173 | | - - name: "WIN-SQL: Installation results" |
| 173 | + - name: "4.4.0.1 MSSQL - Installation results" |
174 | 174 | ansible.builtin.debug: |
175 | 175 | msg: |
176 | | - - "SQL4SAP Installation failed, another installation might be already exist" |
177 | | - - "SQL4SAP output: {{ sql_install_output }}" |
| 176 | + - "4.4.0.1 MSSQL - Installation failed, another installation might be already exist" |
| 177 | + - "4.4.0.1 MSSQL - Output: {{ sql_install_output }}" |
178 | 178 | when: |
179 | 179 | - sql_install_output.rc is defined |
180 | 180 | - sql_install_output.rc == 0 |
181 | 181 | - sql_install_output.stdout | length > 0 |
182 | 182 | - sql_install_output.stdout is search("Error during execution") |
183 | 183 |
|
184 | | - - name: "WIN-SQL: SQL4SAP Install || Flag File" |
| 184 | + - name: "4.4.0.1 MSSQL - SQL4SAP Install || Flag File" |
185 | 185 | ansible.windows.win_file: |
186 | 186 | path: '{{ sap_deployment_automation }}\{{ sap_sid | upper }}\sap_deployment_sqldb.txt' |
187 | 187 | state: touch |
|
0 commit comments