Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.33 KB | None | 0 0
  1. $ ansible-playbook -i inventory/testing/gearman playbooks/testing/gearman.yml --check --diff
  2.  
  3. PLAY [Prepare testing gearman server] ****************************************************************************************************************************************************************************************************************************************************************************************
  4.  
  5. TASK [Gathering Facts] *******************************************************************************************************************************************************************************************************************************************************************************************************
  6. ok: [test04-backend.promo.com]
  7. ok: [staging-php7-backend.slide.ly]
  8. ok: [test02-backend.promo.com]
  9. ok: [test05-backend.promo.com]
  10. ok: [yellow-php7-backend.slide.ly]
  11. ok: [poland01-backend.promo.com]
  12. ok: [test01-backend.promo.com]
  13. ok: [test03-backend.promo.com]
  14.  
  15. TASK [supervisor : Install supervisor] ***************************************************************************************************************************************************************************************************************************************************************************************
  16. ok: [test04-backend.promo.com]
  17. ok: [test05-backend.promo.com]
  18. ok: [poland01-backend.promo.com]
  19. ok: [test02-backend.promo.com]
  20. ok: [test03-backend.promo.com]
  21. ok: [test01-backend.promo.com]
  22. ok: [staging-php7-backend.slide.ly]
  23. ok: [yellow-php7-backend.slide.ly]
  24.  
  25. TASK [supervisor : Configure supervisor] *************************************************************************************************************************************************************************************************************************************************************************************
  26. ok: [test05-backend.promo.com]
  27. ok: [test01-backend.promo.com]
  28. --- before: /etc/supervisor/supervisord.conf
  29. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpHbg8zc/supervisord.conf.j2
  30. @@ -2,12 +2,16 @@
  31.  
  32. [unix_http_server]
  33. file=/var/run/supervisor.sock ; (the path to the socket file)
  34. -chmod=0700 ; sockef file mode (default 0700)
  35. +
  36. +[inet_http_server]
  37. +port = :9001
  38.  
  39. [supervisord]
  40. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  41. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  42. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  43. +user=root
  44. +minfds=65536
  45.  
  46. ; the below section must remain in the config file for RPC
  47. ; (supervisorctl/web interface) to work, additional interfaces may be
  48.  
  49. changed: [test04-backend.promo.com]
  50. --- before: /etc/supervisor/supervisord.conf
  51. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpgH5yWs/supervisord.conf.j2
  52. @@ -2,12 +2,16 @@
  53.  
  54. [unix_http_server]
  55. file=/var/run/supervisor.sock ; (the path to the socket file)
  56. -chmod=0700 ; sockef file mode (default 0700)
  57. +
  58. +[inet_http_server]
  59. +port = :9001
  60.  
  61. [supervisord]
  62. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  63. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  64. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  65. +user=root
  66. +minfds=65536
  67.  
  68. ; the below section must remain in the config file for RPC
  69. ; (supervisorctl/web interface) to work, additional interfaces may be
  70.  
  71. changed: [poland01-backend.promo.com]
  72. --- before: /etc/supervisor/supervisord.conf
  73. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmp_oJ0MG/supervisord.conf.j2
  74. @@ -2,12 +2,16 @@
  75.  
  76. [unix_http_server]
  77. file=/var/run/supervisor.sock ; (the path to the socket file)
  78. -chmod=0700 ; sockef file mode (default 0700)
  79. +
  80. +[inet_http_server]
  81. +port = :9001
  82.  
  83. [supervisord]
  84. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  85. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  86. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  87. +user=root
  88. +minfds=65536
  89.  
  90. ; the below section must remain in the config file for RPC
  91. ; (supervisorctl/web interface) to work, additional interfaces may be
  92.  
  93. changed: [test03-backend.promo.com]
  94. --- before: /etc/supervisor/supervisord.conf
  95. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpI0gFcm/supervisord.conf.j2
  96. @@ -2,12 +2,16 @@
  97.  
  98. [unix_http_server]
  99. file=/var/run/supervisor.sock ; (the path to the socket file)
  100. -chmod=0700 ; sockef file mode (default 0700)
  101. +
  102. +[inet_http_server]
  103. +port = :9001
  104.  
  105. [supervisord]
  106. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  107. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  108. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  109. +user=root
  110. +minfds=65536
  111.  
  112. ; the below section must remain in the config file for RPC
  113. ; (supervisorctl/web interface) to work, additional interfaces may be
  114.  
  115. changed: [test02-backend.promo.com]
  116. --- before: /etc/supervisor/supervisord.conf
  117. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpdPoMKZ/supervisord.conf.j2
  118. @@ -2,12 +2,16 @@
  119.  
  120. [unix_http_server]
  121. file=/var/run/supervisor.sock ; (the path to the socket file)
  122. -chmod=0700 ; sockef file mode (default 0700)
  123. +
  124. +[inet_http_server]
  125. +port = :9001
  126.  
  127. [supervisord]
  128. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  129. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  130. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  131. +user=root
  132. +minfds=65536
  133.  
  134. ; the below section must remain in the config file for RPC
  135. ; (supervisorctl/web interface) to work, additional interfaces may be
  136.  
  137. changed: [yellow-php7-backend.slide.ly]
  138. --- before: /etc/supervisor/supervisord.conf
  139. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmphOmEq3/supervisord.conf.j2
  140. @@ -2,12 +2,16 @@
  141.  
  142. [unix_http_server]
  143. file=/var/run/supervisor.sock ; (the path to the socket file)
  144. -chmod=0700 ; sockef file mode (default 0700)
  145. +
  146. +[inet_http_server]
  147. +port = :9001
  148.  
  149. [supervisord]
  150. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  151. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  152. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  153. +user=root
  154. +minfds=65536
  155.  
  156. ; the below section must remain in the config file for RPC
  157. ; (supervisorctl/web interface) to work, additional interfaces may be
  158.  
  159. changed: [staging-php7-backend.slide.ly]
  160.  
  161. TASK [supervisor : create directory for availbale supervisor config] *********************************************************************************************************************************************************************************************************************************************************
  162. --- before
  163. +++ after
  164. @@ -1,4 +1,4 @@
  165. {
  166. "path": "/etc/supervisor/conf-available.d",
  167. - "state": "absent"
  168. + "state": "directory"
  169. }
  170.  
  171. changed: [poland01-backend.promo.com]
  172. --- before
  173. +++ after
  174. @@ -1,4 +1,4 @@
  175. {
  176. "path": "/etc/supervisor/conf-available.d",
  177. - "state": "absent"
  178. + "state": "directory"
  179. }
  180.  
  181. changed: [staging-php7-backend.slide.ly]
  182. ok: [test01-backend.promo.com]
  183. --- before
  184. +++ after
  185. @@ -1,4 +1,4 @@
  186. {
  187. "path": "/etc/supervisor/conf-available.d",
  188. - "state": "absent"
  189. + "state": "directory"
  190. }
  191.  
  192. changed: [test02-backend.promo.com]
  193. --- before
  194. +++ after
  195. @@ -1,4 +1,4 @@
  196. {
  197. "path": "/etc/supervisor/conf-available.d",
  198. - "state": "absent"
  199. + "state": "directory"
  200. }
  201.  
  202. changed: [test04-backend.promo.com]
  203. --- before
  204. +++ after
  205. @@ -1,4 +1,4 @@
  206. {
  207. "path": "/etc/supervisor/conf-available.d",
  208. - "state": "absent"
  209. + "state": "directory"
  210. }
  211.  
  212. changed: [test03-backend.promo.com]
  213. ok: [test05-backend.promo.com]
  214. --- before
  215. +++ after
  216. @@ -1,4 +1,4 @@
  217. {
  218. "path": "/etc/supervisor/conf-available.d",
  219. - "state": "absent"
  220. + "state": "directory"
  221. }
  222.  
  223. changed: [yellow-php7-backend.slide.ly]
  224.  
  225. RUNNING HANDLER [supervisor : supervisor restart service] ********************************************************************************************************************************************************************************************************************************************************************
  226. changed: [test04-backend.promo.com]
  227. changed: [poland01-backend.promo.com]
  228. changed: [test02-backend.promo.com]
  229. changed: [test03-backend.promo.com]
  230. changed: [staging-php7-backend.slide.ly]
  231. changed: [yellow-php7-backend.slide.ly]
  232.  
  233. TASK [animation_task_manager : create directory for application logs] ********************************************************************************************************************************************************************************************************************************************************
  234. ok: [poland01-backend.promo.com]
  235. ok: [staging-php7-backend.slide.ly]
  236. ok: [test01-backend.promo.com]
  237. ok: [test02-backend.promo.com]
  238. ok: [test03-backend.promo.com]
  239. ok: [test05-backend.promo.com]
  240. ok: [test04-backend.promo.com]
  241. ok: [yellow-php7-backend.slide.ly]
  242.  
  243. TASK [animation_task_manager : Add task manager supervisor config] ***********************************************************************************************************************************************************************************************************************************************************
  244. --- before: /etc/supervisor/conf.d/taskManager.conf
  245. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpWshfio/taskManager.conf
  246. @@ -4,8 +4,10 @@
  247. process_name=%(program_name)s_%(process_num)02d
  248. autostart = true
  249. startsecs = 10
  250. -autorestart = unexpected
  251. +autorestart = true
  252. numprocs = 2
  253. user = ubuntu
  254. redirect_stderr = true
  255. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  256. +stdout_logfile_maxbytes=5MB
  257. +stdout_logfile_backups=1
  258.  
  259. changed: [poland01-backend.promo.com]
  260. --- before: /etc/supervisor/conf.d/taskManager.conf
  261. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpTbctGW/taskManager.conf
  262. @@ -4,8 +4,10 @@
  263. process_name=%(program_name)s_%(process_num)02d
  264. autostart = true
  265. startsecs = 10
  266. -autorestart = unexpected
  267. +autorestart = true
  268. numprocs = 2
  269. user = ubuntu
  270. redirect_stderr = true
  271. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  272. +stdout_logfile_maxbytes=5MB
  273. +stdout_logfile_backups=1
  274.  
  275. changed: [test01-backend.promo.com]
  276. --- before: /etc/supervisor/conf.d/taskManager.conf
  277. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmp40NAKP/taskManager.conf
  278. @@ -4,8 +4,10 @@
  279. process_name=%(program_name)s_%(process_num)02d
  280. autostart = true
  281. startsecs = 10
  282. -autorestart = unexpected
  283. +autorestart = true
  284. numprocs = 2
  285. user = ubuntu
  286. redirect_stderr = true
  287. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  288. +stdout_logfile_maxbytes=5MB
  289. +stdout_logfile_backups=1
  290.  
  291. changed: [staging-php7-backend.slide.ly]
  292. --- before: /etc/supervisor/conf.d/taskManager.conf
  293. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpNuAAaw/taskManager.conf
  294. @@ -4,8 +4,10 @@
  295. process_name=%(program_name)s_%(process_num)02d
  296. autostart = true
  297. startsecs = 10
  298. -autorestart = unexpected
  299. +autorestart = true
  300. numprocs = 2
  301. user = ubuntu
  302. redirect_stderr = true
  303. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  304. +stdout_logfile_maxbytes=5MB
  305. +stdout_logfile_backups=1
  306.  
  307. changed: [test02-backend.promo.com]
  308. --- before: /etc/supervisor/conf.d/taskManager.conf
  309. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpMVvpql/taskManager.conf
  310. @@ -4,8 +4,10 @@
  311. process_name=%(program_name)s_%(process_num)02d
  312. autostart = true
  313. startsecs = 10
  314. -autorestart = unexpected
  315. +autorestart = true
  316. numprocs = 2
  317. user = ubuntu
  318. redirect_stderr = true
  319. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  320. +stdout_logfile_maxbytes=5MB
  321. +stdout_logfile_backups=1
  322.  
  323. changed: [test03-backend.promo.com]
  324. --- before: /etc/supervisor/conf.d/taskManager.conf
  325. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpiMZp2i/taskManager.conf
  326. @@ -4,8 +4,10 @@
  327. process_name=%(program_name)s_%(process_num)02d
  328. autostart = true
  329. startsecs = 10
  330. -autorestart = unexpected
  331. +autorestart = true
  332. numprocs = 2
  333. user = ubuntu
  334. redirect_stderr = true
  335. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  336. +stdout_logfile_maxbytes=5MB
  337. +stdout_logfile_backups=1
  338.  
  339. changed: [test04-backend.promo.com]
  340. --- before: /etc/supervisor/conf.d/taskManager.conf
  341. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmp7nkdJz/taskManager.conf
  342. @@ -4,8 +4,10 @@
  343. process_name=%(program_name)s_%(process_num)02d
  344. autostart = true
  345. startsecs = 10
  346. -autorestart = unexpected
  347. +autorestart = true
  348. numprocs = 2
  349. user = ubuntu
  350. redirect_stderr = true
  351. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  352. +stdout_logfile_maxbytes=5MB
  353. +stdout_logfile_backups=1
  354.  
  355. changed: [test05-backend.promo.com]
  356. --- before: /etc/supervisor/conf.d/taskManager.conf
  357. +++ after: /home/ansible/.ansible/tmp/ansible-local-25783yGkSDy/tmpEvi7eR/taskManager.conf
  358. @@ -9,3 +9,5 @@
  359. user = ubuntu
  360. redirect_stderr = true
  361. stdout_logfile = /var/log/taskManager/%(program_name)s_%(process_num)02d.log
  362. +stdout_logfile_maxbytes=5MB
  363. +stdout_logfile_backups=1
  364.  
  365. changed: [yellow-php7-backend.slide.ly]
  366.  
  367. RUNNING HANDLER [supervisor : supervisor restart service] ********************************************************************************************************************************************************************************************************************************************************************
  368. changed: [poland01-backend.promo.com]
  369. changed: [test01-backend.promo.com]
  370. changed: [staging-php7-backend.slide.ly]
  371. changed: [test03-backend.promo.com]
  372. changed: [test02-backend.promo.com]
  373. changed: [test04-backend.promo.com]
  374. changed: [test05-backend.promo.com]
  375. changed: [yellow-php7-backend.slide.ly]
  376.  
  377. PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************************************************************
  378. poland01-backend.promo.com : ok=8 changed=5 unreachable=0 failed=0
  379. staging-php7-backend.slide.ly : ok=8 changed=5 unreachable=0 failed=0
  380. test01-backend.promo.com : ok=7 changed=2 unreachable=0 failed=0
  381. test02-backend.promo.com : ok=8 changed=5 unreachable=0 failed=0
  382. test03-backend.promo.com : ok=8 changed=5 unreachable=0 failed=0
  383. test04-backend.promo.com : ok=8 changed=5 unreachable=0 failed=0
  384. test05-backend.promo.com : ok=7 changed=2 unreachable=0 failed=0
  385. yellow-php7-backend.slide.ly : ok=8 changed=5 unreachable=0 failed=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement