{"id":4511,"date":"2019-08-07T11:38:51","date_gmt":"2019-08-07T15:38:51","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=4511"},"modified":"2019-08-07T11:38:52","modified_gmt":"2019-08-07T15:38:52","slug":"how-to-install-and-configure-ansible-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/","title":{"rendered":"How to install and configure Ansible on Ubuntu 18.04"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"628\" src=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg\" alt=\"\" class=\"wp-image-4512\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ansible is an open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location and this article will show you how to install  Ansible on a <a href=\"https:\/\/www.globo.tech\/learning-center\/whats-new-ubuntu-18-04-lts\/\">Ubuntu 18.04<\/a> server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ansible can support on all major operating systems like, Linux, Unix, macOS, BSD and Windows. It is very similar to other configuration management systems like, Chef and Puppet. Ansible uses SSH to retrieve information from the remote machines and does not need any client agent on remote servers. You can also create automated tasks using Ansible playbooks to run on your servers.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-Prerequisites\"><br>Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Two fresh Ubuntu 18.04 server installed, one for Ansible server and second for Ansible hosts.<\/li><li>The two server must be able to communicate each other. In our article, 192.168.0.4 is set up on the Ansible server and 192.168.0.3 is set up on the Ansible host.<\/li><li>The root password of both servers.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-SetupSSHKey-basedAuthentication\"><br>Setup SSH Key-based Authentication<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, you will need to configure SSH key-based authentication for Ansible hosts on Ansible server. So you will not require a password to manage Ansible hosts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do so, log in to Ansible server and generate an ssh key pair with the following command:<\/p>\n\n\n\n<code>ssh-keygen -t rsa<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>You should see an output looking like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> Generating public\/private rsa key pair.\n Enter file in which to save the key (\/root\/.ssh\/id_rsa):\n Enter passphrase (empty for no passphrase):\n Enter same passphrase again:\n Your identification has been saved in \/root\/.ssh\/id_rsa.\n Your public key has been saved in \/root\/.ssh\/id_rsa.pub.\n The key fingerprint is:\n SHA256:5JfGu2stiaee+oOud8NDAQVY0YJQ87iwKGud42rl6Oo root@ubuntu1804\n The key's randomart image is:\n +---[RSA 2048]----+\n |&nbsp; .oo++=.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\n |&nbsp;&nbsp;&nbsp; o+o .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\n |&nbsp; . . .o.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\n | . o . o.. .&nbsp;&nbsp;&nbsp;&nbsp; |\n |o . .&nbsp;&nbsp; S.=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |\n |.....&nbsp;&nbsp; .o .&nbsp;&nbsp;&nbsp;&nbsp; |\n |..++&nbsp;&nbsp; + ..o&nbsp;&nbsp;&nbsp;&nbsp; |\n |.o... o B.=..&nbsp;&nbsp;&nbsp; |\n |*E...+o==Boo&nbsp;&nbsp;&nbsp;&nbsp; |\n +----[SHA256]-----+<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Next, copy the generated public key to your Ansible hosts with the following command:<\/p>\n\n\n\n<code>ssh-copy-id -i ~\/.ssh\/id_rsa.pub root@192.168.0.3<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Once the SSH key is added to the Ansible hosts, you should see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \/usr\/bin\/ssh-copy-id: INFO: Source of key(s) to be installed: \"\/root\/.ssh\/id_rsa.pub\"\n \/usr\/bin\/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n \/usr\/bin\/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys\n root@192.168.0.3's password:\n\n Number of key(s) added: 1<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Now try logging into the machine, with:<\/p>\n\n\n\n<code>ssh root@192.168.0.3<\/code>\n\n\n\n<p class=\"wp-block-paragraph\">If it worked correctly, you can now access Ansible hosts from Ansible server using SSH without a password.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-InstallAnsible\"><br>Install Ansible on Ubuntu 18.04<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Next, you will need to install Ansible package on the Ubuntu Ansible server. By default, the latest version of Ansible is not available in the Ubuntu 18.04 repository.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, add the Ansible repository with the following command:<\/p>\n\n\n\n<code>apt-add-repository ppa:ansible\/ansible<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Then, install Ansible by just running the following command:<\/p>\n\n\n\n<code>apt-get install ansible -y<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>After installing Ansible, you can check the version of Ansible with the following command:<\/p>\n\n\n\n<code>ansible --version<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>You should see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> ansible 2.8.2\n config file = \/etc\/ansible\/ansible.cfg\n configured module search path = [u'\/root\/.ansible\/plugins\/modules', u'\/usr\/share\/ansible\/plugins\/modules']\n ansible python module location = \/usr\/lib\/python2.7\/dist-packages\/ansible\n executable location = \/usr\/bin\/ansible\n python version = 2.7.15+ (default, Nov 27 2018, 23:36:35) [GCC 7.3.0] <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-ConfigureAnsibleHosts\"><br>Configure Ansible Hosts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First, you will need to define Ansible hosts in \/etc\/ansible\/hosts to monitor all the hosts.<\/p>\n\n\n\n<code>nano \/etc\/ansible\/hosts<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Add the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> [hosts]\n host1 ansible_host=192.168.0.3<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note<\/strong>: You can add the multiple hosts in the above file to monitor multiple hosts at a time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Save<\/strong> and <strong>close<\/strong> the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Next, create a group named group_vars in \/etc\/ansible directory and create a files for each group you want to configure:<\/p>\n\n\n\n<code>mkdir \/etc\/ansible\/group_vars\nnano \/etc\/ansible\/group_vars\/hosts<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Add the port and user for remote hosts:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> ansible_port: 22\n ansible_user: root<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then, <strong>save<\/strong> and <strong>close<\/strong> the file, when you are finished.<br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br>Next, check all the host&#8217;s connectivity with the following command:<\/p>\n\n\n\n<code>ansible -m ping hosts<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>If everything is fine, you should see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> host1 | SUCCESS =&gt; {\n &nbsp;&nbsp;&nbsp; \"ansible_facts\": {\n &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \"discovered_interpreter_python\": \"\/usr\/bin\/python\"\n &nbsp;&nbsp;&nbsp; },\n &nbsp;&nbsp;&nbsp; \"changed\": false,\n &nbsp;&nbsp;&nbsp; \"ping\": \"pong\"\n }<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-WorkingwithAnsible\"><br>Working with Ansible<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you can easily monitor all the hosts defined in the hosts group easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To check the disk size of Ansible hosts, run the following command:<\/p>\n\n\n\n<code>ansible -m shell -a 'df -h' hosts<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>You should see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> host1 | CHANGED | rc=0 &gt;&gt;\n Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp; Used Avail Use% Mounted on\n udev&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.9G&nbsp; 4.0K&nbsp; 1.9G&nbsp;&nbsp; 1% \/dev\n tmpfs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 384M&nbsp; 1.3M&nbsp; 383M&nbsp;&nbsp; 1% \/run\n \/dev\/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 92G&nbsp; 6.1G&nbsp;&nbsp; 81G&nbsp;&nbsp; 7% \/\n none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4.0K&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 4.0K&nbsp;&nbsp; 0% \/sys\/fs\/cgroup\n none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.0M&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp; 5.0M&nbsp;&nbsp; 0% \/run\/lock\n none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.9G&nbsp;&nbsp; 70M&nbsp; 1.9G&nbsp;&nbsp; 4% \/run\/shm\n none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100M&nbsp;&nbsp; 48K&nbsp; 100M&nbsp;&nbsp; 1% \/run\/user\n \/dev\/sda5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 184G&nbsp;&nbsp; 67G&nbsp; 108G&nbsp; 39% \/home\n \/dev\/sda6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 179G&nbsp;&nbsp; 12G&nbsp; 159G&nbsp;&nbsp; 7% \/Data<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><br>To check the uptime of Ansible hosts with the following command:<\/p>\n\n\n\n<code>ansible -m shell -a 'uptime' hosts<\/code>\n\n\n\n<p class=\"wp-block-paragraph\"><br>You should see the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> host1 | CHANGED | rc=0 &gt;&gt;\n 11:14:45 up&nbsp; 1:18,&nbsp; 5 users,&nbsp; load average: 0.89, 1.11, 1.45<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"NEEDREVIEWS-HowtoinstallandconfigureAnsibleonUbuntu18.04-Conclusion\"><br>Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! you have successfully installed and configured Ansible server and ansible hosts on Ubuntu 18.04 server. You can also configure Ansible to manage and monitor multiple hosts easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more information, refer the Ansible official doc at&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/docs.ansible.com\/ansible\/latest\/index.html\" target=\"_blank\">https:\/\/docs.ansible.com\/ansible\/latest\/index.html<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn how to install Ansible on Ubuntu 18.04. Ansible is an open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":4512,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[128,125,100],"class_list":["post-4511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-applications","tag-ansible","tag-install","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-07T15:38:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-07T15:38:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to install and configure Ansible on Ubuntu 18.04\",\"datePublished\":\"2019-08-07T15:38:51+00:00\",\"dateModified\":\"2019-08-07T15:38:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/\"},\"wordCount\":543,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/installAnsible_ubuntu1804.jpg\",\"keywords\":[\"Ansible\",\"Install\",\"Ubuntu\"],\"articleSection\":[\"Applications\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/\",\"name\":\"How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/installAnsible_ubuntu1804.jpg\",\"datePublished\":\"2019-08-07T15:38:51+00:00\",\"dateModified\":\"2019-08-07T15:38:52+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/installAnsible_ubuntu1804.jpg\",\"contentUrl\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/installAnsible_ubuntu1804.jpg\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/how-to-install-and-configure-ansible-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install and configure Ansible on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech","description":"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech","og_description":"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.","og_url":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/","og_site_name":"Globo.Tech","article_published_time":"2019-08-07T15:38:51+00:00","article_modified_time":"2019-08-07T15:38:52+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg","type":"image\/jpeg"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to install and configure Ansible on Ubuntu 18.04","datePublished":"2019-08-07T15:38:51+00:00","dateModified":"2019-08-07T15:38:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/"},"wordCount":543,"commentCount":0,"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg","keywords":["Ansible","Install","Ubuntu"],"articleSection":["Applications"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/","url":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/","name":"How to install and configure Ansible on Ubuntu 18.04 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg","datePublished":"2019-08-07T15:38:51+00:00","dateModified":"2019-08-07T15:38:52+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"In this article, you will learn how to install Ansible on Ubuntu 18.04. An open-source configuration management and software provisioning tool that can be used for controlling multiple remote hosts from the central location.","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg","contentUrl":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2019\/08\/installAnsible_ubuntu1804.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/how-to-install-and-configure-ansible-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to install and configure Ansible on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=4511"}],"version-history":[{"count":15,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4511\/revisions"}],"predecessor-version":[{"id":4528,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/4511\/revisions\/4528"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media\/4512"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=4511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=4511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=4511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}