{"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 class=\"wp-block-paragraph\">In\u0161tal\u00e1cia:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install ansible<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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 class=\"wp-block-paragraph\">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=\"MzIwMtA1MNY1MlcwNLEyMAYiAA==\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"pVTNbts4EL77KQYMECRAZEpW2rq25QAL7C+6u4f2WhiUNJHYSCSXpGQ777AP0WNfocDuJe177Uj+qdukadLVQRKHnPm++WaGg5mBrBLOJWxpgrTS2VVghBWFFaZk81\/Vx7deVDdvMykmM27mA3pmxuItp0znyOaz7jMXxoNUjhwrEMrJtMIZ73cohMVtkPtw\/xDk3aKSCKWmXzhpr3MpKlQ370oNDm2Ltjl9MCMllAaOPuNbPrwL6x7JylhpBXF6uBLHR8+j6Yatez2ohVSLJaY7URYdiSQ6fzYcxaPhKHw2jOJ4MDh0mrSi89w5mLUvtVpI5dESNr0T3jjLU6n4Zi9+ZE6\/Y34tYa\/uP\/VWXF2D2PGENwhGe4upQqiFB7UtD8LLl7\/A1Yd\/b95\/+Bv3qlzKorlDGKxTzIOltjlRcw4+3wDpAr82GJB5bzBWtzJH2x0sSNRctneHXSyWlI9By+aDWW\/\/q9H+kEN\/LCcCmSb1lGeQCy8ChxnpmDD95sefyiv7W7YmGAGlxcuEld4bN+G8Qx\/WpXBSDbHhFyYZx+ds\/kKqZgXt2rfa9r16oIZuZ1xQFT5xmc\/kpRU1QqVFLlWRsEpcr9m9FJ1QeapXCaNR0svAZVYa78iOWWOlXyeMlPRWZh5zsvp1hQkz2kkvtZqASJ2uGo9TApFmAhYzfxKZ1Rl89jqdMvDSd77HR+PRKJzen1l\/KJpC941GU\/jhxZ8\/E7rNvqHY8VEYj6d9lom3DR5dbNU\/EP+rVYGlzH2ZsKdhyKBEWZS0H8djBr2qKbUVTQOjzVrYQqrt8f1650IGklFXVV8CpancfFMY6hxODUbrTQM\/YHpekfq7KXnE\/bgdq+5+DGowxASCBqzW\/vb0fmWYZC0KBCevMagovy62rIsveytHCtevhVurbC\/ik+jJJxHH4f3FI8xtQ\/LGdACOj8JRyMOY9yyCKBoaVTDKh6IdNvRme3y+AXBdRf8fBhDx5Rl8f5AgDsMVXbhdLPpdsl5CYisar8\/gpBaroNdo0kHRaEAUhi1B9isG\/KA7\/gM=\" \/> \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}]}}