{"id":486697,"date":"2026-07-09T07:53:01","date_gmt":"2026-07-09T07:53:01","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=486697"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=486697","title":{"rendered":"\u041a\u0430\u043a\u00a0\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 Windows 10-\u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u0431\u0435\u0437\u00a0Active Directory: Syncthing, Ansible \u0438 1\u0421"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c!<\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430\u00a0\u0425\u0430\u0431\u0440\u0435. \u0418\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u00a0\u043a\u043e\u043b\u043b\u0435\u0433\u0438, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b: \u043f\u043e\u0447\u0435\u043c\u0443\u00a0\u0431\u044b \u043d\u0435\u00a0\u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>\u0412\u043e\u2011\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0432\u00a0\u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u00a0\u043f\u043e\u043b\u043e\u0447\u043a\u0430\u043c. \u0412\u043e\u2011\u0432\u0442\u043e\u0440\u044b\u0445, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044f \u043f\u043e\u043b\u0443\u0447\u0443 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u043e\u0442\u00a0\u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0448\u0430\u043b\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u0443 \u0438, \u0432\u2011\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043a\u043e\u043c\u0443\u2011\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445.<\/p>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e\u00a0\u0442\u043e\u043c, \u0447\u0435\u043c \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430: Prometheus, Grafana;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u043f\u043b\u043e\u044e \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u044b: Ubuntu, Fedora, Windows Server 2008\u00a0R2;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441\u00a0\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043d\u0430\u00a0Windows 10;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u00a0Python, Ansible, PowerShell, BAT \u0438 Bash;<\/p>\n<\/li>\n<li>\n<p>\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b \u0432\u00a0\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e MySQL \/ PostgreSQL<\/p>\n<\/li>\n<\/ul>\n<h2>\u041e\u00a0\u0440\u0430\u0431\u043e\u0442\u0435<\/h2>\n<p>\u041c\u044b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0441\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u044c\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a. \u041d\u0430\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u043a\u0430\u0441\u0441\u0430 \u0438 \u043e\u0434\u0438\u043d \u041f\u041a. \u0413\u0434\u0435\u2011\u0442\u043e \u0441\u0442\u043e\u0438\u0442 MikroTik, \u043d\u043e\u00a0\u043d\u0430\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0442\u043e\u0447\u0435\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f SIM\u2011\u043a\u0430\u0440\u0442\u0430 \u0432\u00a0\u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438\u043b\u0438\u00a0USB\u2011\u043c\u043e\u0434\u0435\u043c.<\/p>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0435\u0449\u0451 \u0434\u043e\u00a0\u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u0442\u0440\u043e\u0438\u043b\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432.<\/p>\n<h2>\u041a\u0430\u043a\u00a0\u0431\u044b\u043b\u043e \u0440\u0430\u043d\u044c\u0448\u0435<\/h2>\n<ol>\n<li>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0442\u043d\u0438\u043a\u0430 \u0441\u00a0\u043b\u044e\u0431\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c, \u043d\u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f\u00a0\u0437\u0430\u0434\u0430\u0447 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u043d\u0430\u00a0bat \u0438\u043b\u0438\u00a0python<\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0434\u0432\u0443\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u042d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. \u0414\u043b\u044f\u00a0\u0441\u0430\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d Syncthing, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043b\u044e\u0441 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u0447\u043d\u0443\u0442 \u0433\u043b\u0443\u0448\u0438\u0442\u044c \u0438\u043b\u0438\u00a0\u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0430\u0434\u0435\u0442 \u043f\u043e\u00a0\u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u0438\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u043d\u0430\u00a0\u0441\u0432\u044f\u0437\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f \u0441\u00a0\u0442\u043e\u0433\u043e\u00a0\u0436\u0435 \u043c\u0435\u0441\u0442\u0430, \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u0430. \u041a\u0430\u043a\u00a0\u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/225655\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u00a0\u0431\u0443\u0434\u0443.<\/p>\n<p>\u0420\u0430\u0441\u043a\u0438\u0434\u043a\u0430 \u043f\u043e\u00a0\u043f\u0430\u043f\u043a\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f, \u043f\u043e\u00a0\u0441\u0443\u0442\u0438, \u0438\u0437\u00a0\u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u043e\u00a0\u0443\u00a0\u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 1\u0421<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b8\/9f3\/107\/1b89f31074fb169d565dc864ae4bc9da.png\" width=\"1269\" height=\"139\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/1b8\/9f3\/107\/1b89f31074fb169d565dc864ae4bc9da.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1b8\/9f3\/107\/1b89f31074fb169d565dc864ae4bc9da.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<\/li>\n<li>\n<p>\u041d\u0430\u00a0\u0441\u0430\u043c\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0443\u0436\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0431\u0430\u0442\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e\u00a0\u0443\u0433\u043e\u0434\u043d\u043e \u0438 \u043d\u0430\u00a0\u0447\u0442\u043e\u00a0\u0445\u0432\u0430\u0442\u0438\u0442 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u0430\u0432\u0442\u043e\u0440\u0430. <\/p>\n<\/li>\n<\/ol>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043d\u0430\u00a0\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0434\u043b\u044f\u00a0\u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430\u00a0BAT, PowerShell \u0438\u043b\u0438\u00a0Python.<\/p>\n<p>\u041a\u043e\u0433\u0434\u0430 \u044f \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441\u00a0\u0442\u0430\u043a\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u044f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c: \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430\u00a0\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u043b\u043e\u043a\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u043e \u0432\u00a0\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0445 \u0432\u00a0\u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/p>\n<p>\u041d\u043e\u00a0\u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e\u00a0\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c IaC\u2011\u043f\u043e\u0434\u0445\u043e\u0434, \u0438 \u043f\u0435\u0440\u0432\u044b\u043c \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u043c \u0441\u0442\u0430\u043b Ansible.<\/p>\n<p>Active Directory \u0432\u00a0\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u044b \u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u044f \u0434\u0430\u0436\u0435 \u043d\u0435\u00a0\u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b.<\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 BAT\u2011\u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f\u00a0\u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0430\u0440\u0445\u0438\u0432\u0430.<\/p>\n<pre><code>:: =================================================================:: distributor.cmd \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\/\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0432\u0430 + \u0442\u0435\u0441\u0442 + \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430:: \u0423\u0441\u0442\u043e\u0439\u0447\u0438\u0432 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e .bat \u0438 \u0438\u0437 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430:: =================================================================@echo offsetlocal EnableExtensions EnableDelayedExpansion:: =================================================================:: \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418 | \u041a\u041e\u041d\u0421\u0422\u0410\u041d\u0422\u042b:: =================================================================set \"LOG_DIR=C:\\sys\\sync\\logs\"set \"LOG_FILE=%LOG_DIR%\\distributor_%ComputerName%.log\"set \"WINRAR_PATH=C:\\sys\\sync\\rar.exe\"set \"SOURCE_ARCHIVE=C:\\sys\\sync\\distributor.rar\"set \"DESTINATION_PATH=C:\\sys\\sync\\TS_Piot\":: OLD FILES TO DELETEset \"REGIME_MSI=regime*\"set \"ESMZIP=esmpack*\"set \"REMOVE_ARCHIVE_AFTER_UNPACK=1\"set \"SIGNAL_OK=C:\\sys\\sync\\distributor.ok\"set \"SIGNAL_ERR=C:\\sys\\sync\\distributor.err\"set \"MAX_RETRIES=5\"set \"RETRY_DELAY=180\"set \"WINRAR_LOG=%LOG_DIR%\\winrar_%ComputerName%.log\":: =================================================================:: \u041f\u041e\u0414\u0413\u041e\u0422\u041e\u0412\u041a\u0410:: =================================================================if not exist \"%LOG_DIR%\" mkdir \"%LOG_DIR%\" &gt;nul 2&gt;&amp;1call :LOG \"-------------------- Script Started --------------------\"if exist \"%SIGNAL_OK%\" del \/q \"%SIGNAL_OK%\" &gt;nul 2&gt;&amp;1if exist \"%SIGNAL_ERR%\" del \/q \"%SIGNAL_ERR%\" &gt;nul 2&gt;&amp;1if not exist \"%WINRAR_PATH%\" (    call :LOG \"[ERROR] WinRAR not found at: %WINRAR_PATH%\"    call :MAKE_ERR_SIGNAL    endlocal    exit \/b 1)call :LOG \"[INFO] WinRAR found successfully: %WINRAR_PATH%\"if not exist \"%DESTINATION_PATH%\" (    call :LOG \"[ERROR] Destination path not found: %DESTINATION_PATH%\"    call :LOG \"[INFO] Creating folder...\"    mkdir \"%DESTINATION_PATH%\"    if exist %DESTINATION_PATH% (        call :LOG \"[INFO] Destination folder was successfully created at path: %DESTINATION_PATH%\"    ) else (        call :LOG \"[ERROR] Destination folder not created at path: %DESTINATION_PATH%\"        call :MAKE_ERR_SIGNAL        endlocal        exit \/b 1    )) else (    call :DELETE_OLD_FILES)call :LOG \"[INFO] Destination path OK: %DESTINATION_PATH%\":: =================================================================:: \u041e\u0421\u041d\u041e\u0412\u041d\u041e\u0419 \u0421\u041a\u0420\u0418\u041f\u0422:: =================================================================call :TEST_ARCHIVEif errorlevel 1 (    call :LOG \"[ERROR] Archive test stage failed.\"    call :repete    endlocal    exit \/b 1)call :UNPACK_ARCHIVEif errorlevel 1 (    call :LOG \"[ERROR] Unpack stage failed.\"    call :MAKE_ERR_SIGNAL    endlocal    exit \/b 1):: =================================================================:: \u0423\u0421\u041f\u0415\u0428\u041d\u041e\u0415 \u0417\u0410\u0412\u0415\u0420\u0428\u0415\u041d\u0418\u0415:: =================================================================type nul &gt; \"%SIGNAL_OK%\"call :LOG \"-------------------- Script Finished Successfully --------------------\"endlocalgoto :EOF:: =================================================================:: \u0424\u0423\u041d\u041a\u0426\u0418\u0418:: =================================================================:TEST_ARCHIVE    set \/a attempt=1    call :LOG \"[INFO] Starting archive test...\":RETRY_LOOP    if not exist \"%SOURCE_ARCHIVE%\" (        call :LOG \"[WARNING] Archive not found, waiting... (Attempt !attempt!\/%MAX_RETRIES%)\"        timeout \/t %RETRY_DELAY% \/nobreak &gt;nul        set \/a attempt+=1        if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP        call :LOG \"[ERROR] Archive file not found after %MAX_RETRIES% attempts!\"        exit \/b 1    )    :: --- \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u043d\u0435 \u0434\u043e\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0430\u0440\u0445\u0438\u0432 (\u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u0442\u0430\u0431\u0438\u043b\u0435\u043d) ---    for %%A in (\"%SOURCE_ARCHIVE%\") do set \"SIZE1=%%~zA\"    timeout \/t 10 \/nobreak &gt;nul    for %%A in (\"%SOURCE_ARCHIVE%\") do set \"SIZE2=%%~zA\"    if \"!SIZE1!\" neq \"!SIZE2!\" (        call :LOG \"[WARNING] Archive size is changing (!SIZE1! -&gt; !SIZE2!), retrying... (Attempt !attempt!\/%MAX_RETRIES%)\"        timeout \/t %RETRY_DELAY% \/nobreak &gt;nul        set \/a attempt+=1        if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP        call :LOG \"[ERROR] Archive copy did not stabilize after %MAX_RETRIES% attempts!\"        exit \/b 1    )    :: --- \u0422\u0435\u0441\u0442 \u0430\u0440\u0445\u0438\u0432\u0430: \u0412\u0410\u0416\u041d\u041e \u2014 \u0431\u0435\u0437 START, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 errorlevel ---    \"%WINRAR_PATH%\" t -inul \"%SOURCE_ARCHIVE%\" &gt;&gt; \"%WINRAR_LOG%\" 2&gt;&amp;1    if !errorlevel! equ 0 (        call :LOG \"[INFO] Archive test completed successfully (Attempt !attempt!\/%MAX_RETRIES%)\"        exit \/b 0    )    call :LOG \"[WARNING] Archive test failed (errorlevel=!errorlevel!), retrying... (Attempt !attempt!\/%MAX_RETRIES%)\"    timeout \/t %RETRY_DELAY% \/nobreak &gt;nul    set \/a attempt+=1    if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP    call :LOG \"[ERROR] Archive test failed after %MAX_RETRIES% attempts! See: %WINRAR_LOG%\"    exit \/b 1:DELETE_OLD_FILES    call :LOG \"[INFO] Starting delete old files...\"    IF EXIST \"%DESTINATION_PATH%\\%REGIME_MSI%\" (        call :LOG \"[INFO] Trying to delete %DESTINATION_PATH%\\%REGIME_MSI%\"        del \/F \/Q \"%DESTINATION_PATH%\\%REGIME_MSI%\"    )    IF EXIST \"%DESTINATION_PATH%\\%ESMZIP%\" (        call :LOG \"[INFO] Trying to delete %DESTINATION_PATH%\\%ESMZIP%\"        del \/F \/Q \"%DESTINATION_PATH%\\%ESMZIP%\"    )    exit \/b 0:UNPACK_ARCHIVE    call :LOG \"[INFO] Starting unpack...\"    :: \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 (\u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f). \u041b\u043e\u0433 \u043f\u0438\u0448\u0435\u043c \u0432 \u0444\u0430\u0439\u043b.    \"%WINRAR_PATH%\" x -o+ -y -inul -ilog\"%WINRAR_LOG%\" \"%SOURCE_ARCHIVE%\" \"%DESTINATION_PATH%\" &gt;nul 2&gt;&amp;1    if %errorlevel% EQU 0 (        call :LOG \"[INFO] Unpacked successfully.\"        if \"%REMOVE_ARCHIVE_AFTER_UNPACK%\"==\"1\" (            del \/q \"%SOURCE_ARCHIVE%\" &gt;nul 2&gt;&amp;1            if errorlevel 1 (                call :LOG \"[WARN] Could not delete archive: %SOURCE_ARCHIVE%\"            ) else (                call :LOG \"[INFO] Source archive deleted: %SOURCE_ARCHIVE%\"            )        )        exit \/b 0    )    call :LOG \"[ERROR] Unpacking FAILED (errorlevel=%errorlevel%). Check: %WINRAR_LOG%\"    exit \/b 1:LOG    echo [%DATE% %TIME%] %~1&gt;&gt; \"%LOG_FILE%\"    exit \/b 0:repete    call :LOG \"[WARNING] Repete func was called. Repeating replace licenses process...\"    copy \/y \"C:\\sys\\sync\\automation.run.cmd\" \"C:\\sys\\sync\\automation.cmd\" &gt;nul 2&gt;&amp;1    if exist \"C:\\sys\\sync\\automation.cmd.copy.lock\" del \/q \"C:\\sys\\sync\\automation.cmd.copy.lock\" &gt;nul 2&gt;&amp;1    call :MAKE_ERR_SIGNAL    exit \/b 0:MAKE_ERR_SIGNAL    type nul &gt; \"%SIGNAL_ERR%\"    call :LOG \"[ERROR] Distributor process failed!\"    call :LOG \"-------------------- Script Finished with Errors --------------------\"    exit \/b 0<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u00a0\u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0435\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u043e\u00a0\u0442\u043e\u0433\u0434\u0430, \u043a\u0430\u043a\u00a0\u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u043d \u0441\u0442\u0430\u043b\u00a0\u0431\u044b \u043c\u0435\u043d\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0434\u043b\u044f\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041b\u043e\u0433\u0438\u00a0\u0431\u044b\u043b\u0438 \u0432\u0430\u0436\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445 \u043c\u043e\u0433\u043b\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0442\u043e\u2011\u0442\u043e \u0438\u0437\u00a0\u0432\u044b\u0435\u0437\u0434\u043d\u044b\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043c\u043e\u0433 \u0447\u0442\u043e\u2011\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u043d\u0435\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043b\u0438\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u00a0\u0434\u043e\u00a0\u043a\u043e\u043d\u0446\u0430. \u0412\u00a0\u0438\u0442\u043e\u0433\u0435 \u0442\u043e\u0447\u043a\u0430 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0435\u0441\u0442\u044c, \u043d\u043e\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e. \u041b\u043e\u0433\u0438 \u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0430\u044e\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e.<\/p>\n<p>\u0418 \u0442\u0430\u00a0\u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 Ansible<\/p>\n<pre><code class=\"yaml\">---- name: Ensure destination directory exists  ansible.windows.win_file:    path: \"{{ distribute_ts_piot_destination_dir }}\"    state: directory- name: Ensure archive exists  ansible.windows.win_stat:    path: \"{{ distribute_ts_piot_archive }}\"  register: distribute_ts_piot_archive_file- name: Find all files inside the target folder  ansible.windows.win_find:    paths: \"{{ distribute_ts_piot_destination_dir }}\"    file_type: file  register: files_to_delete- name: Delete the registered files  ansible.windows.win_file:    path: \"{{ item.path }}\"    state: absent  loop: \"{{ files_to_delete.files }}\"- name: Extract archive to destination dir  community.windows.win_unzip:    src: \"{{ distribute_ts_piot_archive }}\"    dest: \"{{ distribute_ts_piot_destination_dir }}\"    delete_archive: true  when: distribute_ts_piot_archive_file.stat.exists- name: Print a status message  ansible.builtin.debug:    msg: \"Archive is not exists: {{ distribute_ts_piot_archive }} Skipping extracting...\"  when: not distribute_ts_piot_archive_file.stat.exists<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430, \u043d\u0430\u00a0\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f. \u041f\u043b\u0435\u0439\u0431\u0443\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u044b\u043c, \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c \u0434\u0430\u0436\u0435 \u0431\u0435\u0437\u00a0\u0433\u043b\u0443\u0431\u043e\u043a\u043e\u0433\u043e \u043f\u043e\u0433\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432\u00a0\u0434\u0435\u0442\u0430\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0412\u00a0\u044d\u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e: Ansible \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u00a0\u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u00a0\u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u0435\u043c<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0442\u0430\u043b\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044f.<\/p>\n<p>\u0423\u00a0\u043d\u0430\u0441 \u0442\u043e\u0447\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u00a0\u043c\u0435\u0441\u044f\u0446, \u0430\u00a0\u0438\u043d\u043e\u0433\u0434\u0430 \u0438 \u0447\u0430\u0449\u0435. \u0412\u043d\u043e\u0441\u0438\u0442\u044c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0440\u0443\u043a\u0430\u043c\u0438 \u043d\u0435\u00a0\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c: \u044d\u0442\u043e \u0434\u043e\u043b\u0433\u043e, \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u043d\u0435\u0438\u0437\u0431\u0435\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a\u00a0\u043e\u0448\u0438\u0431\u043a\u0430\u043c.<\/p>\n<p>\u0412\u00a0\u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0431\u0440\u0430\u043b\u0438 1\u0421. \u0421\u00a0\u043f\u043e\u043c\u043e\u0449\u044c\u044e 1\u0421\u2011\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438\u00a0\u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 CSV\u2011\u0444\u0430\u0439\u043b \u043f\u043e\u00a0\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c\u0443 \u0448\u0430\u0431\u043b\u043e\u043d\u0443.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0430\u0440\u0441\u0435\u0440 \u043d\u0430\u00a0Python \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 systemd\u2011\u0442\u0430\u0439\u043c\u0435\u0440. \u041d\u0430\u00a0\u0432\u044b\u0445\u043e\u0434\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Ansible\u2011\u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0441\u00a0\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>\u041f\u043e\u00a0\u043f\u043e\u0445\u043e\u0436\u0435\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f\u00a0Prometheus job.<\/p>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 Syncthing \u0432\u0441\u0435 \u0435\u0449\u0435 \u043d\u0443\u0436\u0435\u043d<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f Ansible Syncthing \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435\u00a0\u0438\u0441\u0447\u0435\u0437. \u041d\u0430\u043e\u0431\u043e\u0440\u043e\u0442, \u043e\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u0432\u0430\u0436\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0445\u0435\u043c\u044b.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430: \u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u0430\u0442\u044c \u0430\u0440\u0445\u0438\u0432 \u0441\u00a0\u041f\u041e\u00a0\u0434\u043b\u044f\u00a0\u0432\u044b\u0435\u0437\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u0430. \u0410\u0440\u0445\u0438\u0432 \u0432\u0435\u0441\u0438\u0442 \u043e\u043a\u043e\u043b\u043e 300\u00a0\u041c\u0411.<\/p>\n<p>\u041c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 Ansible, \u043d\u043e\u00a0\u044d\u0442\u043e \u0437\u0430\u043d\u044f\u043b\u043e\u00a0\u0431\u044b \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u0427\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u044f \u0434\u0430\u0436\u0435 \u043d\u0435\u00a0\u0441\u0442\u0430\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0Syncthing \u0443\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0435\u0448\u0430\u0435\u0442 \u0442\u0430\u043a\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443.<\/p>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0445\u0435\u043c\u0430 \u0442\u0430\u043a\u0430\u044f:<\/p>\n<ol>\n<li>\n<p>\u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0430\u0440\u0445\u0438\u0432 \u0447\u0435\u0440\u0435\u0437 Syncthing.<\/p>\n<\/li>\n<li>\n<p>\u0412\u00a0Ansible\u2011\u043f\u043b\u0435\u0439\u0431\u0443\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0443\u0436\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u043b\u0435\u0436\u0430\u0449\u0438\u0439 \u0444\u0430\u0439\u043b.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u00a0\u0438\u0442\u043e\u0433\u0435 Syncthing \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430\u00a0\u043d\u0430\u0434\u0435\u0436\u043d\u0443\u044e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430\u00a0Ansible\u00a0\u2014 \u0437\u0430\u00a0\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043b\u043e\u0433\u0438\u043a\u0438.<\/p>\n<p>\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430, \u0437\u0430\u00a0\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u0441\u0442\u0430\u043b\u0430 \u0442\u0430\u043a\u043e\u0439:<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/538\/d8f\/d35\/538d8fd354eeeae5f56b1198e83eba7a.png\" alt=\"\u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u043e\u0439: 1\u0421 \u043e\u0442\u0434\u0430\u0435\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0447\u0435\u043a, Python \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Ansible \u0438 Prometheus, Syncthing \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430 Ansible \u2014 \u0437\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 Windows-\u0443\u0437\u043b\u0430\u0445.\" title=\"\u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u043e\u0439: 1\u0421 \u043e\u0442\u0434\u0430\u0435\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0447\u0435\u043a, Python \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f Ansible \u0438 Prometheus, Syncthing \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430 Ansible \u2014 \u0437\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 Windows-\u0443\u0437\u043b\u0430\u0445.\" width=\"1306\" height=\"492\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/538\/d8f\/d35\/538d8fd354eeeae5f56b1198e83eba7a.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/538\/d8f\/d35\/538d8fd354eeeae5f56b1198e83eba7a.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041e\u0431\u0449\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u043e\u0439: 1\u0421 \u043e\u0442\u0434\u0430\u0435\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0447\u0435\u043a, Python \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0434\u043b\u044f\u00a0Ansible \u0438 Prometheus, Syncthing \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430\u00a0\u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430\u00a0Ansible\u00a0\u2014 \u0437\u0430\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430\u00a0Windows\u2011\u0443\u0437\u043b\u0430\u0445.<\/figcaption><\/div>\n<\/figure>\n<h3>\u0427\u0442\u043e\u00a0\u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c<\/h3>\n<p>\u0418\u0437\u00a0\u043d\u0435\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f retry\u2011runner\u00a0\u2014 \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0430 \u043d\u0430\u0434 Ansible, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043b\u044f\u00a0\u0442\u043e\u0447\u0435\u043a, \u043e\u043a\u0430\u0437\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438.<\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u0435\u0441\u043b\u0438 \u0447\u0430\u0441\u0442\u044c \u0443\u0437\u043b\u043e\u0432 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430, \u0438\u0445 \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0425\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u0434\u043b\u044f\u00a0\u0442\u0430\u043a\u0438\u0445 \u0442\u043e\u0447\u0435\u043a \u0438 \u043d\u0435\u00a0\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0440\u0443\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f.<\/p>\n<p>\u0412\u00a0\u0438\u0434\u0435\u0430\u043b\u0435 \u044d\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<ul>\n<li>\n<p>Ansible \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u00a0\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044e;<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432\u00a0\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>runner \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u00a0\u043d\u0438\u043c;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u043e\u0447\u043a\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0437\u00a0\u043e\u0447\u0435\u0440\u0435\u0434\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043a\u0430 \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0439 \u043f\u043b\u0430\u043d, \u0447\u0435\u043c \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435. \u041d\u043e\u00a0\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c: Ansible \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c, Syncthing\u00a0\u2014 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432, \u0430\u00a0\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c \u0438\u0437 1\u0421 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432\u00a0\u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0441\u0445\u0435\u043c\u0430, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0432\u0435\u043d\u0442\u0430\u0440\u044c, \u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f Windows\u2011\u0445\u043e\u0441\u0442\u0430\u043c\u0438 \u0431\u0435\u0437\u00a0Active Directory.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u043c \u043f\u043b\u044e\u0441\u043e\u043c \u0434\u043b\u044f\u00a0\u043c\u0435\u043d\u044f \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e\u00a0\u0432\u00a0\u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a\u00a0\u0441\u0442\u0430\u0440\u044b\u043c \u0431\u0430\u0442\u043d\u0438\u043a\u0430\u043c \u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044e, \u043e\u043d \u0434\u043e\u00a0\u0441\u0438\u0445 \u043f\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u00a0\u0438\u0445 \u043f\u043e\u043c\u043e\u0449\u044c\u044e. <\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1057308\/\">https:\/\/habr.com\/ru\/articles\/1057308\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435\u041f\u0440\u0438\u0432\u0435\u0442 \u0432\u0441\u0435\u043c!\u042d\u0442\u043e \u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430\u00a0\u0425\u0430\u0431\u0440\u0435. \u0418\u0434\u0435\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u0440\u0438\u0448\u043b\u0430 \u043e\u0442\u00a0\u043a\u043e\u043b\u043b\u0435\u0433\u0438, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b: \u043f\u043e\u0447\u0435\u043c\u0443\u00a0\u0431\u044b \u043d\u0435\u00a0\u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c.\u0412\u043e\u2011\u043f\u0435\u0440\u0432\u044b\u0445, \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u044b\u0442 \u0432\u00a0\u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0438 \u0440\u0430\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u00a0\u043f\u043e\u043b\u043e\u0447\u043a\u0430\u043c. \u0412\u043e\u2011\u0432\u0442\u043e\u0440\u044b\u0445, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044f \u043f\u043e\u043b\u0443\u0447\u0443 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u043e\u0442\u00a0\u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0435\u0448\u0430\u043b\u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041d\u0443 \u0438, \u0432\u2011\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u043a\u043e\u043c\u0443\u2011\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445.\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e\u00a0\u0442\u043e\u043c, \u0447\u0435\u043c \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u044e\u0441\u044c:\u0441\u043e\u0437\u0434\u0430\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430: Prometheus, Grafana;\u0434\u0435\u043f\u043b\u043e\u044e \u043d\u043e\u0432\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u043d\u0430\u00a0\u0441\u0435\u0440\u0432\u0435\u0440\u044b: Ubuntu, Fedora, Windows Server 2008\u00a0R2;\u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441\u00a0\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043d\u0430\u00a0Windows 10;\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0438 \u043d\u0430\u00a0Python, Ansible, PowerShell, BAT \u0438 Bash;\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u044e \u0438\u043d\u0446\u0438\u0434\u0435\u043d\u0442\u044b \u0432\u00a0\u0441\u0435\u0440\u0432\u0438\u0441\u0430\u0445;\u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u044e MySQL \/ PostgreSQL\u041e\u00a0\u0440\u0430\u0431\u043e\u0442\u0435\u041c\u044b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0441\u00a0\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0441\u0435\u0442\u044c\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0442\u043e\u0447\u0435\u043a. \u041d\u0430\u00a0\u043a\u0430\u0436\u0434\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u043a\u0430\u0441\u0441\u0430 \u0438 \u043e\u0434\u0438\u043d \u041f\u041a. \u0413\u0434\u0435\u2011\u0442\u043e \u0441\u0442\u043e\u0438\u0442 MikroTik, \u043d\u043e\u00a0\u043d\u0430\u00a0\u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0442\u043e\u0447\u0435\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u0430\u044f SIM\u2011\u043a\u0430\u0440\u0442\u0430 \u0432\u00a0\u0440\u043e\u0443\u0442\u0435\u0440\u0435 \u0438\u043b\u0438\u00a0USB\u2011\u043c\u043e\u0434\u0435\u043c.\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0435\u0449\u0451 \u0434\u043e\u00a0\u043c\u043e\u0435\u0433\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0441\u0442\u0440\u043e\u0438\u043b\u0441\u044f \u0432\u043e\u043a\u0440\u0443\u0433 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432.\u041a\u0430\u043a\u00a0\u0431\u044b\u043b\u043e \u0440\u0430\u043d\u044c\u0448\u0435\u041f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0437, \u0432\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0442\u043d\u0438\u043a\u0430 \u0441\u00a0\u043b\u044e\u0431\u044b\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c, \u043d\u043e\u00a0\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438.\u0414\u043b\u044f\u00a0\u0437\u0430\u0434\u0430\u0447 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u043d\u0430\u00a0bat \u0438\u043b\u0438\u00a0python\u041e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0434\u0432\u0443\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432. \u042d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. \u0414\u043b\u044f\u00a0\u0441\u0430\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d Syncthing, \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u043b\u044e\u0441 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430, \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430\u0447\u043d\u0443\u0442 \u0433\u043b\u0443\u0448\u0438\u0442\u044c \u0438\u043b\u0438\u00a0\u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0430\u0434\u0435\u0442 \u043f\u043e\u00a0\u043b\u044e\u0431\u044b\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0430\u043c, \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u0438\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0432\u044b\u0445\u043e\u0434\u0435 \u043d\u0430\u00a0\u0441\u0432\u044f\u0437\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0441\u044f \u0441\u00a0\u0442\u043e\u0433\u043e\u00a0\u0436\u0435 \u043c\u0435\u0441\u0442\u0430, \u043d\u0430\u00a0\u043a\u043e\u0442\u043e\u0440\u043e\u043c\u00a0\u0431\u044b\u043b\u0430 \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u0430. \u041a\u0430\u043a\u00a0\u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0443\u0442. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u00a0\u0431\u0443\u0434\u0443.\u0420\u0430\u0441\u043a\u0438\u0434\u043a\u0430 \u043f\u043e\u00a0\u043f\u0430\u043f\u043a\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c\u0441\u044f, \u043f\u043e\u00a0\u0441\u0443\u0442\u0438, \u0438\u0437\u00a0\u0447\u0435\u0433\u043e \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u043e\u00a0\u0443\u00a0\u043d\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 1\u0421\u041d\u0430\u00a0\u0441\u0430\u043c\u043e\u0439 \u0442\u043e\u0447\u043a\u0435 \u0443\u0436\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0431\u0430\u0442\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0442\u043e\u00a0\u0443\u0433\u043e\u0434\u043d\u043e \u0438 \u043d\u0430\u00a0\u0447\u0442\u043e\u00a0\u0445\u0432\u0430\u0442\u0438\u0442 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0438 \u0430\u0432\u0442\u043e\u0440\u0430. \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043d\u0430\u00a0\u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0432\u00a0\u0442\u043e\u043c, \u0447\u0442\u043e\u00a0\u0434\u043b\u044f\u00a0\u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0430\u00a0BAT, PowerShell \u0438\u043b\u0438\u00a0Python.\u041a\u043e\u0433\u0434\u0430 \u044f \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441\u00a0\u0442\u0430\u043a\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438, \u044f \u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c: \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430\u00a0\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u043b\u043e\u043a\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u043e \u0432\u00a0\u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u043a\u0443\u0441\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0445 \u0432\u00a0\u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b.\u041d\u043e\u00a0\u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e\u00a0\u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0430. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c IaC\u2011\u043f\u043e\u0434\u0445\u043e\u0434, \u0438 \u043f\u0435\u0440\u0432\u044b\u043c \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442\u043e\u043c \u0441\u0442\u0430\u043b Ansible.Active Directory \u0432\u00a0\u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u00a0\u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043c\u044b \u043d\u0435\u00a0\u043c\u043e\u0436\u0435\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u044f \u0434\u0430\u0436\u0435 \u043d\u0435\u00a0\u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b.\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 BAT\u2011\u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f\u00a0\u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0430\u0440\u0445\u0438\u0432\u0430.:: =================================================================:: distributor.cmd \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430\/\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0430\u0440\u0445\u0438\u0432\u0430 + \u0442\u0435\u0441\u0442 + \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430:: \u0423\u0441\u0442\u043e\u0439\u0447\u0438\u0432 \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e .bat \u0438 \u0438\u0437 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430:: =================================================================@echo offsetlocal EnableExtensions EnableDelayedExpansion:: =================================================================:: \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0418 | \u041a\u041e\u041d\u0421\u0422\u0410\u041d\u0422\u042b:: =================================================================set &#171;LOG_DIR=C:\\sys\\sync\\logs&#187;set &#171;LOG_FILE=%LOG_DIR%\\distributor_%ComputerName%.log&#187;set &#171;WINRAR_PATH=C:\\sys\\sync\\rar.exe&#187;set &#171;SOURCE_ARCHIVE=C:\\sys\\sync\\distributor.rar&#187;set &#171;DESTINATION_PATH=C:\\sys\\sync\\TS_Piot&#187;:: OLD FILES TO DELETEset &#171;REGIME_MSI=regime*&#187;set &#171;ESMZIP=esmpack*&#187;set &#171;REMOVE_ARCHIVE_AFTER_UNPACK=1&#8243;set &#171;SIGNAL_OK=C:\\sys\\sync\\distributor.ok&#187;set &#171;SIGNAL_ERR=C:\\sys\\sync\\distributor.err&#187;set &#171;MAX_RETRIES=5&#8243;set &#171;RETRY_DELAY=180&#8243;set &#171;WINRAR_LOG=%LOG_DIR%\\winrar_%ComputerName%.log&#187;:: =================================================================:: \u041f\u041e\u0414\u0413\u041e\u0422\u041e\u0412\u041a\u0410:: =================================================================if not exist &#171;%LOG_DIR%&#187; mkdir &#171;%LOG_DIR%&#187; &gt;nul 2&gt;&amp;1call :LOG &#171;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Script Started &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#171;if exist &#171;%SIGNAL_OK%&#187; del \/q &#171;%SIGNAL_OK%&#187; &gt;nul 2&gt;&amp;1if exist &#171;%SIGNAL_ERR%&#187; del \/q &#171;%SIGNAL_ERR%&#187; &gt;nul 2&gt;&amp;1if not exist &#171;%WINRAR_PATH%&#187; (    call :LOG &#171;[ERROR] WinRAR not found at: %WINRAR_PATH%&#187;    call :MAKE_ERR_SIGNAL    endlocal    exit \/b 1)call :LOG &#171;[INFO] WinRAR found successfully: %WINRAR_PATH%&#187;if not exist &#171;%DESTINATION_PATH%&#187; (    call :LOG &#171;[ERROR] Destination path not found: %DESTINATION_PATH%&#187;    call :LOG &#171;[INFO] Creating folder&#8230;&#187;    mkdir &#171;%DESTINATION_PATH%&#187;    if exist %DESTINATION_PATH% (        call :LOG &#171;[INFO] Destination folder was successfully created at path: %DESTINATION_PATH%&#187;    ) else (        call :LOG &#171;[ERROR] Destination folder not created at path: %DESTINATION_PATH%&#187;        call :MAKE_ERR_SIGNAL        endlocal        exit \/b 1    )) else (    call :DELETE_OLD_FILES)call :LOG &#171;[INFO] Destination path OK: %DESTINATION_PATH%&#187;:: =================================================================:: \u041e\u0421\u041d\u041e\u0412\u041d\u041e\u0419 \u0421\u041a\u0420\u0418\u041f\u0422:: =================================================================call :TEST_ARCHIVEif errorlevel 1 (    call :LOG &#171;[ERROR] Archive test stage failed.&#187;    call :repete    endlocal    exit \/b 1)call :UNPACK_ARCHIVEif errorlevel 1 (    call :LOG &#171;[ERROR] Unpack stage failed.&#187;    call :MAKE_ERR_SIGNAL    endlocal    exit \/b 1):: =================================================================:: \u0423\u0421\u041f\u0415\u0428\u041d\u041e\u0415 \u0417\u0410\u0412\u0415\u0420\u0428\u0415\u041d\u0418\u0415:: =================================================================type nul &gt; &#171;%SIGNAL_OK%&#187;call :LOG &#171;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Script Finished Successfully &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#171;endlocalgoto :EOF:: =================================================================:: \u0424\u0423\u041d\u041a\u0426\u0418\u0418:: =================================================================:TEST_ARCHIVE    set \/a attempt=1    call :LOG &#171;[INFO] Starting archive test&#8230;&#187;:RETRY_LOOP    if not exist &#171;%SOURCE_ARCHIVE%&#187; (        call :LOG &#171;[WARNING] Archive not found, waiting&#8230; (Attempt !attempt!\/%MAX_RETRIES%)&#187;        timeout \/t %RETRY_DELAY% \/nobreak &gt;nul        set \/a attempt+=1        if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP        call :LOG &#171;[ERROR] Archive file not found after %MAX_RETRIES% attempts!&#187;        exit \/b 1    )    :: &#8212; \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u043d\u0435 \u0434\u043e\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u0430\u0440\u0445\u0438\u0432 (\u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u0442\u0430\u0431\u0438\u043b\u0435\u043d) &#8212;    for %%A in (&#171;%SOURCE_ARCHIVE%&#187;) do set &#171;SIZE1=%%~zA&#187;    timeout \/t 10 \/nobreak &gt;nul    for %%A in (&#171;%SOURCE_ARCHIVE%&#187;) do set &#171;SIZE2=%%~zA&#187;    if &#171;!SIZE1!&#187; neq &#171;!SIZE2!&#187; (        call :LOG &#171;[WARNING] Archive size is changing (!SIZE1! -&gt; !SIZE2!), retrying&#8230; (Attempt !attempt!\/%MAX_RETRIES%)&#187;        timeout \/t %RETRY_DELAY% \/nobreak &gt;nul        set \/a attempt+=1        if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP        call :LOG &#171;[ERROR] Archive copy did not stabilize after %MAX_RETRIES% attempts!&#187;        exit \/b 1    )    :: &#8212; \u0422\u0435\u0441\u0442 \u0430\u0440\u0445\u0438\u0432\u0430: \u0412\u0410\u0416\u041d\u041e \u2014 \u0431\u0435\u0437 START, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 errorlevel &#8212;    &#171;%WINRAR_PATH%&#187; t -inul &#171;%SOURCE_ARCHIVE%&#187; &gt;&gt; &#171;%WINRAR_LOG%&#187; 2&gt;&amp;1    if !errorlevel! equ 0 (        call :LOG &#171;[INFO] Archive test completed successfully (Attempt !attempt!\/%MAX_RETRIES%)&#187;        exit \/b 0    )    call :LOG &#171;[WARNING] Archive test failed (errorlevel=!errorlevel!), retrying&#8230; (Attempt !attempt!\/%MAX_RETRIES%)&#187;    timeout \/t %RETRY_DELAY% \/nobreak &gt;nul    set \/a attempt+=1    if !attempt! leq %MAX_RETRIES% goto :RETRY_LOOP    call :LOG &#171;[ERROR] Archive test failed after %MAX_RETRIES% attempts! See: %WINRAR_LOG%&#187;    exit \/b 1:DELETE_OLD_FILES    call :LOG &#171;[INFO] Starting delete old files&#8230;&#187;    IF EXIST &#171;%DESTINATION_PATH%\\%REGIME_MSI%&#187; (        call :LOG &#171;[INFO] Trying to delete %DESTINATION_PATH%\\%REGIME_MSI%&#187;        del \/F \/Q &#171;%DESTINATION_PATH%\\%REGIME_MSI%&#187;    )    IF EXIST &#171;%DESTINATION_PATH%\\%ESMZIP%&#187; (        call :LOG &#171;[INFO] Trying to delete %DESTINATION_PATH%\\%ESMZIP%&#187;        del \/F \/Q &#171;%DESTINATION_PATH%\\%ESMZIP%&#187;    )    exit \/b 0:UNPACK_ARCHIVE    call :LOG &#171;[INFO] Starting unpack&#8230;&#187;    :: \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u043a\u0430 (\u0431\u0435\u0437 \u043f\u0430\u0440\u043e\u043b\u044f). \u041b\u043e\u0433 \u043f\u0438\u0448\u0435\u043c \u0432 \u0444\u0430\u0439\u043b.    &#171;%WINRAR_PATH%&#187; x -o+ -y -inul -ilog&#187;%WINRAR_LOG%&#187; &#171;%SOURCE_ARCHIVE%&#187; &#171;%DESTINATION_PATH%&#187; &gt;nul 2&gt;&amp;1    if %errorlevel% EQU 0 (        call :LOG &#171;[INFO] Unpacked successfully.&#187;        if &#171;%REMOVE_ARCHIVE_AFTER_UNPACK%&#187;==&#187;1&#187; (            del \/q &#171;%SOURCE_ARCHIVE%&#187; &gt;nul 2&gt;&amp;1            if errorlevel 1 (                call :LOG &#171;[WARN] Could not delete archive: %SOURCE_ARCHIVE%&#187;            ) else (                call :LOG &#171;[INFO] Source archive deleted: %SOURCE_ARCHIVE%&#187;            )        )        exit \/b 0    )    call :LOG &#171;[ERROR] Unpacking FAILED (errorlevel=%errorlevel%). Check: %WINRAR_LOG%&#187;    exit \/b 1:LOG    echo [%DATE% %TIME%] %~1&gt;&gt; &#171;%LOG_FILE%&#187;    exit \/b 0:repete    call :LOG &#171;[WARNING] Repete func was called. Repeating replace licenses process&#8230;&#187;    copy \/y &#171;C:\\sys\\sync\\automation.run.cmd&#187; &#171;C:\\sys\\sync\\automation.cmd&#187; &gt;nul 2&gt;&amp;1    if exist &#171;C:\\sys\\sync\\automation.cmd.copy.lock&#187; del \/q &#171;C:\\sys\\sync\\automation.cmd.copy.lock&#187; &gt;nul 2&gt;&amp;1    call :MAKE_ERR_SIGNAL    exit \/b 0:MAKE_ERR_SIGNAL    type nul &gt; &#171;%SIGNAL_ERR%&#187;    call :LOG &#171;[ERROR] Distributor process failed!&#187;    call :LOG &#171;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Script Finished with Errors &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#187;    exit \/b 0\u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0436\u043d\u043e\u00a0\u0431\u044b\u043b\u043e\u00a0\u0431\u044b \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u0447\u0442\u0438 \u0432\u00a0\u0434\u0432\u0430 \u0440\u0430\u0437\u0430, \u0435\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435. \u041d\u043e\u00a0\u0442\u043e\u0433\u0434\u0430, \u043a\u0430\u043a\u00a0\u043c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043e\u043d \u0441\u0442\u0430\u043b\u00a0\u0431\u044b \u043c\u0435\u043d\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0434\u043b\u044f\u00a0\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f.\u041b\u043e\u0433\u0438\u00a0\u0431\u044b\u043b\u0438 \u0432\u0430\u0436\u043d\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e\u00a0\u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043d\u0430\u00a0\u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u043e\u0447\u043a\u0430\u0445 \u043c\u043e\u0433\u043b\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0442\u043e\u2011\u0442\u043e \u0438\u0437\u00a0\u0432\u044b\u0435\u0437\u0434\u043d\u044b\u0445 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u043c\u043e\u0433 \u0447\u0442\u043e\u2011\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c, \u043d\u0435\u00a0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043b\u0438\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u00a0\u0434\u043e\u00a0\u043a\u043e\u043d\u0446\u0430. \u0412\u00a0\u0438\u0442\u043e\u0433\u0435 \u0442\u043e\u0447\u043a\u0430 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0435\u0441\u0442\u044c, \u043d\u043e\u00a0\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435\u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e. \u041b\u043e\u0433\u0438 \u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432\u00a0\u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u0430\u044e\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e.\u0418 \u0442\u0430\u00a0\u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 Ansible&#8212;- name: Ensure destination directory exists  ansible.windows.win_file:    path: &#171;{{ distribute_ts_piot_destination_dir }}&#187;    state: directory- name: Ensure archive exists  ansible.windows.win_stat:    path: &#171;{{ distribute_ts_piot_archive }}&#187;  register: distribute_ts_piot_archive_file- name: Find all files&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-486697","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/486697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=486697"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/486697\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}