-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_run.log
More file actions
288 lines (197 loc) · 21.9 KB
/
Copy pathcheck_run.log
File metadata and controls
288 lines (197 loc) · 21.9 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
klevo@DESKTOP-RNLB524:~/ansible-prepare-server$ ansible-playbook -i inventory/hosts playbooks/prepare_server.yml --check
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
PLAY [Prepare CPU-related configurations on dev-cpu hosts] ******************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [cpu : Include C-states tasks for all CPUs] ****************************************************************************************************************************************************************
included: /home/klevo/ansible-prepare-server/roles/cpu/tasks/disable_cstate.yml for 63.176.213.67
TASK [cpu : Disable C-states for all CPUs] **********************************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [cpu : Include performance mode tasks using cpupower] ******************************************************************************************************************************************************
included: /home/klevo/ansible-prepare-server/roles/cpu/tasks/cpupower.yml for 63.176.213.67
TASK [cpu : Check if cpupower tool is installed] ****************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [cpu : Install cpupower tool] ******************************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Set CPU governor to performance using cpupower] *****************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Verify CPU governor using cpupower] *****************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [cpu : Check if cpupower service exists] *******************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Skip restart if cpupower service is not found] ******************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Configure cpupower governor setting] ****************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Include performance mode tasks using cpufrequtils] **************************************************************************************************************************************************
included: /home/klevo/ansible-prepare-server/roles/cpu/tasks/cpufrequtils.yml for 63.176.213.67
TASK [cpu : Install cpufrequtils tool] **************************************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [cpu : Check if CPU scaling governor files exist] **********************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [cpu : Skip tasks if CPU scaling governor is not supported] ************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": "CPU scaling governor is not supported on this system."
}
TASK [cpu : Ensure CPU frequency governor is set to performance] ************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Verify CPU governor settings] ***********************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Debug governor status] ******************************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Check if cpufrequtils service exists] ***************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Skip restart if cpufrequtils service is not found] **************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [cpu : Persist performance mode in cpufrequtils] ***********************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [Display information about CPUs and Hyper-Threading] *******************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": "1 cores, Hyper-Threading: disabled"
}
RUNNING HANDLER [cpu : Update GRUB] *****************************************************************************************************************************************************************************
skipping: [63.176.213.67]
PLAY [Encrypt disks on dev-encrypt hosts] ***********************************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Validate disk existence] ************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Fail if disk does not exist] ********************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Include encryption tasks] ***********************************************************************************************************************************************************
included: /home/klevo/ansible-prepare-server/roles/encrypt_second_disk/tasks/encrypt.yml for 63.176.213.67
TASK [encrypt_second_disk : Install cryptsetup for disk encryption] *********************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Check if disk exists] ***************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Fail if disk does not exist] ********************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Check if the disk has partitions] ***************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Partition the disk if no partitions exist] ******************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Wait for the kernel to recognize the new partition] *********************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Check if partition exists] **********************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Fail if partition does not exist] ***************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Check if the partition is already encrypted] ****************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Debug luks_check output] ************************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": "cryptsetup isLuks result: 0"
}
TASK [encrypt_second_disk : Encrypt the partition] **************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Open the encrypted partition] *******************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Verify the encrypted partition is available] ****************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_second_disk : Fail if encrypted partition is not available] ***************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_second_disk : Create a filesystem on the encrypted partition] *************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_second_disk : Create mount directory] *************************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_second_disk : Mount the encrypted partition] ******************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_second_disk : Add the encrypted partition to /etc/crypttab] ***************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_second_disk : Add the mount to /etc/fstab] ********************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_next_partition : Get the root partition] **********************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Set default root partition if undefined] *****************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Debug root partition] ************************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": "Root partition is /dev/xvda1"
}
TASK [encrypt_next_partition : Extract the disk from the root partition] ****************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Identify the next partition after root] ******************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Debug next partition] ************************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": "Next partition after root is /dev/xvda14"
}
TASK [encrypt_next_partition : Include encryption tasks] ********************************************************************************************************************************************************
included: /home/klevo/ansible-prepare-server/roles/encrypt_next_partition/tasks/encrypt_next_partition.yml for 63.176.213.67
TASK [encrypt_next_partition : Check if the partition exists] ***************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Fail if the partition does not exist] ********************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Check if the partition is already encrypted] *************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Check if the partition is mounted] ***********************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Fail if the partition is already mounted] ****************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Encrypt the partition] ***********************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Open the encrypted partition] ****************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Verify the encrypted partition is available] *************************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Simulate encrypted partition existence in check mode] ****************************************************************************************************************************
ok: [63.176.213.67]
TASK [encrypt_next_partition : Fail if the encrypted partition is not available] ********************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Create a filesystem on the encrypted partition] **********************************************************************************************************************************
skipping: [63.176.213.67]
TASK [encrypt_next_partition : Create mount directory] **********************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_next_partition : Mount the encrypted partition] ***************************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_next_partition : Add the encrypted partition to /etc/crypttab] ************************************************************************************************************************************
changed: [63.176.213.67]
TASK [encrypt_next_partition : Add the mount to /etc/fstab] *****************************************************************************************************************************************************
changed: [63.176.213.67]
PLAY [Configure network settings on dev-network hosts] **********************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [network : Gather facts about active network interfaces] ***************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [network : Identify the active network interface] **********************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [network : Check if the interface is already named net0] ***************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Check if /etc/netplan/ contains net0 configuration] *********************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Skip renaming if net0 is already in /etc/netplan] ***********************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Display facts about the current interface] ******************************************************************************************************************************************************
ok: [63.176.213.67] => {
"msg": [
"Current interface name: enX0",
"IPv4 Address: 172.30.39.59",
"MAC Address: 02:75:aa:0e:1f:af",
"MTU: 9001"
]
}
TASK [network : Schedule a reboot in 60 seconds] ****************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Rename network interface to net0] ***************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Bring up the renamed interface] *****************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Retrieve updated facts after renaming] **********************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [network : Display facts about the renamed interface] ******************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Find the netplan file responsible for network configuration] ************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Update netplan configuration to rename interface] ***********************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Apply netplan changes] **************************************************************************************************************************************************************************
skipping: [63.176.213.67]
TASK [network : Cancel the scheduled reboot] ********************************************************************************************************************************************************************
skipping: [63.176.213.67]
PLAY [Gather server configuration] ******************************************************************************************************************************************************************************
TASK [Gathering Facts] ******************************************************************************************************************************************************************************************
ok: [63.176.213.67]
TASK [Gather facts about the server] ****************************************************************************************************************************************************************************
ok: [63.176.213.67]
PLAY RECAP ******************************************************************************************************************************************************************************************************
63.176.213.67 : ok=48 changed=11 unreachable=0 failed=0 skipped=38 rescued=0 ignored=0