{"id":837,"date":"2020-03-27T14:10:03","date_gmt":"2020-03-27T13:10:03","guid":{"rendered":"https:\/\/blog.mhasin.eu\/?p=837"},"modified":"2020-03-27T14:18:54","modified_gmt":"2020-03-27T13:18:54","slug":"ansible-pridanie-hosta","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=837","title":{"rendered":"Ansible pridanie hosta"},"content":{"rendered":"\n<p>In\u0161tal\u00e1cia:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install ansible<\/code><\/pre>\n\n\n\n<p>Nastavenie hosta (vzdialen\u00e9ho serveru)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/ansible\/hosts<\/code><\/pre>\n\n\n\n<p>priranie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[servers]\nmain_web ansible_host=147.232.207.133\n\n[servers:vars]\nansible_python_interpreter=\/usr\/bin\/python3<\/code><\/pre>\n\n\n\n<p>Medzi vzdialen\u00fdm serverom a ansible je potrebne mat nastavene SSH k\u013e\u00fa\u010de<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ojEFhkrJcy\"><a href=\"https:\/\/blog.mhasin.eu\/?p=834\">Linux vytvorenie SSH k\u013e\u00fa\u010dov<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"\u201cLinux vytvorenie SSH k\u013e\u00fa\u010dov\u201d \u2014 BLOG\" src=\"https:\/\/blog.mhasin.eu\/?p=834&embed=true#?secret=ojEFhkrJcy\" data-secret=\"ojEFhkrJcy\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Test ansible:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ansible all -m ping -u root<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"515\" height=\"80\" src=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/03\/image-11.png\" alt=\"\" class=\"wp-image-840\" srcset=\"https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/03\/image-11.png 515w, https:\/\/blog.mhasin.eu\/wp-content\/uploads\/2020\/03\/image-11-300x47.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/figure>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"szA2BwA=\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"c8wrzkzKSVUoKMpMSczLTFXIyC8uSQQA\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7C1MDYHAA==\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1MNY1Ml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\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">\u00a0\u00a0<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">\u00a0\u00a0<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"In\u0161tal\u00e1cia: Nastavenie hosta (vzdialen\u00e9ho serveru) priranie: Medzi vzdialen\u00fdm serverom a ansible je potrebne mat nastavene SSH k\u013e\u00fa\u010de Test ansible: \u00a0\u00a0 Send article as PDF \u00a0\u00a0\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-837","post","type-post","status-publish","format-standard","hentry","category-ansible"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=837"}],"version-history":[{"count":3,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":841,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/837\/revisions\/841"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}