alvarovaca

ansible-playbook pre.yml

Jun 13th, 2021 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.38 KB | None | 0 0
  1. (ansible) alvaro@debian:~/GitHub/ansible-tfg$ ansible-playbook pre.yml
  2.  
  3. PLAY [all] ***************************************************************************************************************************************************************************
  4.  
  5. TASK [Gathering Facts] ***************************************************************************************************************************************************************
  6. ok: [mon1]
  7. ok: [admin1]
  8. ok: [osd1]
  9. ok: [osd3]
  10. ok: [osd2]
  11. ok: [mon2]
  12. ok: [mon3]
  13. ok: [dns1]
  14. ok: [client2]
  15. ok: [client1]
  16.  
  17. TASK [common : Ensure apt does not use debian replica] *******************************************************************************************************************************
  18. changed: [osd2]
  19. changed: [admin1]
  20. changed: [osd3]
  21. changed: [osd1]
  22. changed: [mon1]
  23. changed: [mon2]
  24. changed: [client1]
  25. changed: [client2]
  26. changed: [dns1]
  27. changed: [mon3]
  28.  
  29. TASK [common : Ensure apt uses cica replica] *****************************************************************************************************************************************
  30. changed: [osd1] => (item=https://ftp.cica.es/debian/ buster)
  31. changed: [osd3] => (item=https://ftp.cica.es/debian/ buster)
  32. changed: [admin1] => (item=https://ftp.cica.es/debian/ buster)
  33. changed: [osd2] => (item=https://ftp.cica.es/debian/ buster)
  34. changed: [mon1] => (item=https://ftp.cica.es/debian/ buster)
  35. changed: [osd1] => (item=https://ftp.cica.es/debian/ buster-updates)
  36. changed: [osd3] => (item=https://ftp.cica.es/debian/ buster-updates)
  37. changed: [admin1] => (item=https://ftp.cica.es/debian/ buster-updates)
  38. changed: [osd2] => (item=https://ftp.cica.es/debian/ buster-updates)
  39. changed: [mon1] => (item=https://ftp.cica.es/debian/ buster-updates)
  40. changed: [admin1] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  41. changed: [osd1] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  42. changed: [osd3] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  43. changed: [osd2] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  44. changed: [mon1] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  45. changed: [mon2] => (item=https://ftp.cica.es/debian/ buster)
  46. changed: [client1] => (item=https://ftp.cica.es/debian/ buster)
  47. changed: [mon3] => (item=https://ftp.cica.es/debian/ buster)
  48. changed: [client2] => (item=https://ftp.cica.es/debian/ buster)
  49. changed: [dns1] => (item=https://ftp.cica.es/debian/ buster)
  50. changed: [mon2] => (item=https://ftp.cica.es/debian/ buster-updates)
  51. changed: [client1] => (item=https://ftp.cica.es/debian/ buster-updates)
  52. changed: [client2] => (item=https://ftp.cica.es/debian/ buster-updates)
  53. changed: [mon3] => (item=https://ftp.cica.es/debian/ buster-updates)
  54. changed: [dns1] => (item=https://ftp.cica.es/debian/ buster-updates)
  55. changed: [mon2] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  56. changed: [client1] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  57. changed: [client2] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  58. changed: [mon3] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  59. changed: [dns1] => (item=https://ftp.cica.es/debian-security/ buster/updates)
  60.  
  61. TASK [common : Ensure system is updated] *********************************************************************************************************************************************
  62. changed: [mon1]
  63. changed: [mon2]
  64. changed: [admin1]
  65. changed: [osd2]
  66. changed: [osd3]
  67. changed: [osd1]
  68. changed: [mon3]
  69. changed: [client1]
  70. changed: [client2]
  71. changed: [dns1]
  72.  
  73. TASK [common : Set timezone to Europe/Madrid] ****************************************************************************************************************************************
  74. changed: [mon1]
  75. changed: [osd2]
  76. changed: [admin1]
  77. changed: [osd1]
  78. changed: [osd3]
  79. changed: [client1]
  80. changed: [client2]
  81. changed: [dns1]
  82. changed: [mon2]
  83. changed: [mon3]
  84.  
  85. TASK [common : Ensure hosts file is not managed by cloud_init] ***********************************************************************************************************************
  86. changed: [osd1]
  87. changed: [osd2]
  88. changed: [mon1]
  89. changed: [osd3]
  90. changed: [admin1]
  91. changed: [mon3]
  92. changed: [mon2]
  93. changed: [client1]
  94. changed: [client2]
  95. changed: [dns1]
  96.  
  97. TASK [common : Ensure hosts file does not resolve hostname] **************************************************************************************************************************
  98. changed: [mon1]
  99. changed: [osd3]
  100. changed: [osd2]
  101. changed: [admin1]
  102. changed: [osd1]
  103. changed: [mon2]
  104. changed: [mon3]
  105. changed: [client1]
  106. changed: [dns1]
  107. changed: [client2]
  108.  
  109. TASK [common : Add DNS server to resolvconf configuration] ***************************************************************************************************************************
  110. changed: [mon1]
  111. changed: [osd2]
  112. changed: [osd1]
  113. changed: [osd3]
  114. changed: [admin1]
  115. changed: [mon2]
  116. changed: [mon3]
  117. changed: [client1]
  118. changed: [client2]
  119. changed: [dns1]
  120.  
  121. TASK [common : Add search pattern to resolvconf configuration] ***********************************************************************************************************************
  122. changed: [osd3]
  123. changed: [admin1]
  124. changed: [mon1]
  125. changed: [osd1]
  126. changed: [osd2]
  127. changed: [mon2]
  128. changed: [client2]
  129. changed: [mon3]
  130. changed: [client1]
  131. changed: [dns1]
  132.  
  133. RUNNING HANDLER [common : restart resolvconf] ****************************************************************************************************************************************
  134. changed: [osd3]
  135. changed: [mon1]
  136. changed: [admin1]
  137. changed: [osd1]
  138. changed: [osd2]
  139. changed: [mon3]
  140. changed: [mon2]
  141. changed: [client1]
  142. changed: [client2]
  143. changed: [dns1]
  144.  
  145. PLAY [dns] ***************************************************************************************************************************************************************************
  146.  
  147. TASK [Gathering Facts] ***************************************************************************************************************************************************************
  148. ok: [dns1]
  149.  
  150. TASK [dns : Ensure bind9 is installed] ***********************************************************************************************************************************************
  151. changed: [dns1]
  152.  
  153. TASK [dns : Copy named.conf.options file] ********************************************************************************************************************************************
  154. changed: [dns1]
  155.  
  156. TASK [dns : Copy named.conf.local file] **********************************************************************************************************************************************
  157. changed: [dns1]
  158.  
  159. TASK [dns : Copy db.example.com zone using template] *********************************************************************************************************************************
  160. changed: [dns1]
  161.  
  162. RUNNING HANDLER [dns : restart bind9] ************************************************************************************************************************************************
  163. changed: [dns1]
  164.  
  165. PLAY [admin:osd:mon:client] **********************************************************************************************************************************************************
  166.  
  167. TASK [Gathering Facts] ***************************************************************************************************************************************************************
  168. ok: [admin1]
  169. ok: [osd2]
  170. ok: [osd3]
  171. ok: [osd1]
  172. ok: [mon1]
  173. ok: [client2]
  174. ok: [mon2]
  175. ok: [mon3]
  176. ok: [client1]
  177.  
  178. TASK [ceph : Create cephuser user] ***************************************************************************************************************************************************
  179. changed: [admin1]
  180. changed: [osd1]
  181. changed: [osd3]
  182. changed: [osd2]
  183. changed: [mon1]
  184. changed: [mon3]
  185. changed: [client1]
  186. changed: [client2]
  187. changed: [mon2]
  188.  
  189. TASK [ceph : Allow cephuser to execute sudo commands without password] ***************************************************************************************************************
  190. changed: [osd1]
  191. changed: [osd3]
  192. changed: [mon1]
  193. changed: [osd2]
  194. changed: [admin1]
  195. changed: [mon2]
  196. changed: [mon3]
  197. changed: [client1]
  198. changed: [client2]
  199.  
  200. TASK [ceph : Create .ssh structure] **************************************************************************************************************************************************
  201. changed: [admin1]
  202. changed: [mon1]
  203. changed: [osd3]
  204. changed: [osd1]
  205. changed: [osd2]
  206. changed: [mon3]
  207. changed: [mon2]
  208. changed: [client1]
  209. changed: [client2]
  210.  
  211. TASK [ceph : Copy ansible_rsa private key] *******************************************************************************************************************************************
  212. changed: [osd2]
  213. changed: [admin1]
  214. changed: [mon1]
  215. changed: [osd1]
  216. changed: [osd3]
  217. changed: [mon2]
  218. changed: [client2]
  219. changed: [client1]
  220. changed: [mon3]
  221.  
  222. TASK [ceph : Copy ansible_rsa public key] ********************************************************************************************************************************************
  223. changed: [mon1]
  224. changed: [admin1]
  225. changed: [osd2]
  226. changed: [osd3]
  227. changed: [osd1]
  228. changed: [client1]
  229. changed: [mon3]
  230. changed: [mon2]
  231. changed: [client2]
  232.  
  233. TASK [ceph : Copy authorized_keys file] **********************************************************************************************************************************************
  234. changed: [osd1]
  235. changed: [mon1]
  236. changed: [osd3]
  237. changed: [osd2]
  238. changed: [admin1]
  239. changed: [mon2]
  240. changed: [mon3]
  241. changed: [client1]
  242. changed: [client2]
  243.  
  244. TASK [ceph : Check if known_hosts file exists] ***************************************************************************************************************************************
  245. ok: [admin1]
  246. ok: [mon1]
  247. ok: [osd3]
  248. ok: [osd1]
  249. ok: [osd2]
  250. ok: [mon2]
  251. ok: [mon3]
  252. ok: [client1]
  253. ok: [client2]
  254.  
  255. TASK [ceph : Scan and add SSH keys of the machines to known_hosts file] **************************************************************************************************************
  256. changed: [osd2] => (item=admin)
  257. changed: [osd1] => (item=admin)
  258. changed: [admin1] => (item=admin)
  259. changed: [mon1] => (item=admin)
  260. changed: [osd3] => (item=admin)
  261. changed: [osd2] => (item=osd1)
  262. changed: [mon1] => (item=osd1)
  263. changed: [osd3] => (item=osd1)
  264. changed: [admin1] => (item=osd1)
  265. changed: [osd1] => (item=osd1)
  266. changed: [osd2] => (item=osd2)
  267. changed: [mon1] => (item=osd2)
  268. changed: [osd3] => (item=osd2)
  269. changed: [admin1] => (item=osd2)
  270. changed: [osd1] => (item=osd2)
  271. changed: [mon1] => (item=osd3)
  272. changed: [admin1] => (item=osd3)
  273. changed: [osd2] => (item=osd3)
  274. changed: [osd3] => (item=osd3)
  275. changed: [osd1] => (item=osd3)
  276. changed: [admin1] => (item=mon1)
  277. changed: [osd2] => (item=mon1)
  278. changed: [mon1] => (item=mon1)
  279. changed: [osd1] => (item=mon1)
  280. changed: [osd3] => (item=mon1)
  281. changed: [osd2] => (item=mon2)
  282. changed: [admin1] => (item=mon2)
  283. changed: [mon1] => (item=mon2)
  284. changed: [osd1] => (item=mon2)
  285. changed: [osd3] => (item=mon2)
  286. changed: [mon1] => (item=mon3)
  287. changed: [osd2] => (item=mon3)
  288. changed: [admin1] => (item=mon3)
  289. changed: [osd1] => (item=mon3)
  290. changed: [osd3] => (item=mon3)
  291. changed: [mon1] => (item=client1)
  292. changed: [osd2] => (item=client1)
  293. changed: [admin1] => (item=client1)
  294. changed: [osd3] => (item=client1)
  295. changed: [osd1] => (item=client1)
  296. changed: [mon1] => (item=client2)
  297. changed: [osd2] => (item=client2)
  298. changed: [osd3] => (item=client2)
  299. changed: [osd1] => (item=client2)
  300. changed: [admin1] => (item=client2)
  301. changed: [mon2] => (item=admin)
  302. changed: [mon3] => (item=admin)
  303. changed: [client2] => (item=admin)
  304. changed: [client1] => (item=admin)
  305. changed: [mon2] => (item=osd1)
  306. changed: [client1] => (item=osd1)
  307. changed: [mon3] => (item=osd1)
  308. changed: [client2] => (item=osd1)
  309. changed: [mon2] => (item=osd2)
  310. changed: [mon3] => (item=osd2)
  311. changed: [client1] => (item=osd2)
  312. changed: [client2] => (item=osd2)
  313. changed: [mon2] => (item=osd3)
  314. changed: [client1] => (item=osd3)
  315. changed: [mon3] => (item=osd3)
  316. changed: [client2] => (item=osd3)
  317. changed: [mon2] => (item=mon1)
  318. changed: [client1] => (item=mon1)
  319. changed: [mon3] => (item=mon1)
  320. changed: [client2] => (item=mon1)
  321. changed: [mon2] => (item=mon2)
  322. changed: [client1] => (item=mon2)
  323. changed: [mon3] => (item=mon2)
  324. changed: [client2] => (item=mon2)
  325. changed: [mon2] => (item=mon3)
  326. changed: [client1] => (item=mon3)
  327. changed: [mon3] => (item=mon3)
  328. changed: [client2] => (item=mon3)
  329. changed: [mon2] => (item=client1)
  330. changed: [mon3] => (item=client1)
  331. changed: [client1] => (item=client1)
  332. changed: [client2] => (item=client1)
  333. changed: [mon2] => (item=client2)
  334. changed: [mon3] => (item=client2)
  335. changed: [client1] => (item=client2)
  336. changed: [client2] => (item=client2)
  337.  
  338. TASK [ceph : Change known_hosts file owner] ******************************************************************************************************************************************
  339. changed: [admin1]
  340. changed: [osd1]
  341. changed: [mon1]
  342. changed: [osd3]
  343. changed: [osd2]
  344. changed: [mon3]
  345. changed: [mon2]
  346. changed: [client1]
  347. changed: [client2]
  348.  
  349. TASK [ceph : Add Ceph apt key] *******************************************************************************************************************************************************
  350. changed: [admin1]
  351. changed: [osd2]
  352. changed: [mon1]
  353. changed: [osd1]
  354. changed: [osd3]
  355. changed: [mon3]
  356. changed: [client1]
  357. changed: [mon2]
  358. changed: [client2]
  359.  
  360. TASK [ceph : Add Ceph repository] ****************************************************************************************************************************************************
  361. changed: [osd1]
  362. changed: [osd2]
  363. changed: [admin1]
  364. changed: [osd3]
  365. changed: [mon1]
  366. changed: [mon2]
  367. changed: [mon3]
  368. changed: [client1]
  369. changed: [client2]
  370.  
  371. TASK [ceph : Ensure needed packages are installed] ***********************************************************************************************************************************
  372. changed: [mon1]
  373. changed: [mon2]
  374. changed: [osd2]
  375. changed: [osd3]
  376. changed: [osd1]
  377. changed: [mon3]
  378. changed: [admin1]
  379. changed: [client1]
  380. changed: [client2]
  381.  
  382. PLAY RECAP ***************************************************************************************************************************************************************************
  383. admin1 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  384. client1 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  385. client2 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  386. dns1 : ok=16 changed=14 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  387. mon1 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  388. mon2 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  389. mon3 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  390. osd1 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  391. osd2 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
  392. osd3 : ok=23 changed=20 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Add Comment
Please, Sign In to add comment