{"id":3300,"date":"2024-01-19T12:26:20","date_gmt":"2024-01-19T12:26:20","guid":{"rendered":"https:\/\/www.easydeploy.io\/blog\/?p=3300"},"modified":"2024-01-19T12:26:20","modified_gmt":"2024-01-19T12:26:20","slug":"setup-spring-boot-server-using-ansible-script-in-amazonlinux-2","status":"publish","type":"post","link":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/","title":{"rendered":"Setup spring boot server using Ansible script in Amazonlinux 2"},"content":{"rendered":"<p><span>In today&#8217;s rapidly evolving <strong>IT landscape<\/strong>, <strong>automation is key<\/strong> to efficient and scalable infrastructure management. <strong>Spring Boot<\/strong>, a popular Java-based framework for building web applications, combined with <strong>Ansible<\/strong>, a robust automation tool, offers a potent solution for orchestrating server setup and configuration. This guide will walk you through the process of using Ansible to automate the deployment of a <strong>Spring Boot application<\/strong>, streamlining the setup, configuration, and management of your server infrastructure.<\/span><\/p>\n<h3><span id=\"Prerequisites\">Prerequisites<\/span><\/h3>\n<p>These are the following things that you should need before starting the setup.<\/p>\n<ol>\n<li>One\u00a0 EC2 instance <strong>(amazonlinux 2)<\/strong> as Ansible master server.<\/li>\n<li>One EC2 instance <strong>(amazonlinux 2)<\/strong> as a remote server.<\/li>\n<\/ol>\n<h3>Install pip and ansible in the Amazonlinux 2 <span style=\"font-size: 18.72px;\">server.<\/span><\/h3>\n<ul>\n<li>SSH to your Amazon Linux server<\/li>\n<li>Install pip<\/li>\n<\/ul>\n<pre>sudo yum install pip -y<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/1-1.webp\" alt=\"ssh to ec2 instance\" width=\"1345\" height=\"681\" class=\"aligncenter wp-image-3303 size-full\" title=\"ssh to ec2 instance\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/1-1.webp 1345w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/1-1-300x152.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/1-1-1024x518.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/1-1-768x389.webp 768w\" sizes=\"(max-width: 1345px) 100vw, 1345px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1.webp\" alt=\"install pip\" width=\"1538\" height=\"723\" class=\"aligncenter wp-image-3304 size-full\" title=\"install pip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1.webp 1538w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1-300x141.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1-1024x481.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1-768x361.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/2-1-1536x722.webp 1536w\" sizes=\"(max-width: 1538px) 100vw, 1538px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Install Ansible<\/li>\n<\/ul>\n<pre>sudo pip install ansible<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1.webp\" alt=\"install ansible\" width=\"1610\" height=\"772\" class=\"aligncenter wp-image-3305 size-full\" title=\"install ansible\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1.webp 1610w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1-300x144.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1-1024x491.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1-768x368.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/3-1-1536x737.webp 1536w\" sizes=\"(max-width: 1610px) 100vw, 1610px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Verify the Ansible installation by checking Ansible version<\/li>\n<\/ul>\n<pre>ansible --version<\/pre>\n<h3><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/4-1.webp\" alt=\"check ansible version\" width=\"1423\" height=\"280\" class=\"aligncenter wp-image-3306 size-full\" title=\"check ansible version\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/4-1.webp 1423w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/4-1-300x59.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/4-1-1024x201.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/4-1-768x151.webp 768w\" sizes=\"(max-width: 1423px) 100vw, 1423px\" \/><\/h3>\n<h3><\/h3>\n<h3><strong>Install git and clone ansible\u00a0<\/strong><span style=\"font-size: 18.72px;\">script.<\/span><\/h3>\n<ul>\n<li>install git<\/li>\n<\/ul>\n<pre>sudo yum install git -y<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1.webp\" alt=\"install git \" width=\"1634\" height=\"599\" class=\"aligncenter wp-image-3307 size-full\" title=\"install git \" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1.webp 1634w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1-300x110.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1-1024x375.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1-768x282.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/5-1-1536x563.webp 1536w\" sizes=\"(max-width: 1634px) 100vw, 1634px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>clone the git repo which contains ansible script.<\/li>\n<\/ul>\n<pre>sudo git clone https:\/\/github.com\/easydeploy-cloud\/springboot_ansible.git<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/6-1.webp\" alt=\"clone repo\" width=\"1252\" height=\"200\" class=\"aligncenter wp-image-3308 size-full\" title=\"clone repo\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/6-1.webp 1252w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/6-1-300x48.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/6-1-1024x164.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/6-1-768x123.webp 768w\" sizes=\"(max-width: 1252px) 100vw, 1252px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Use the list command to verify whether we got the script or not<\/li>\n<\/ul>\n<pre>ls\r\nls springboot_ansible<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/77.webp\" alt=\"list files\" width=\"985\" height=\"213\" class=\"aligncenter wp-image-3310 size-full\" title=\"list files\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/77.webp 985w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/77-300x65.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/77-768x166.webp 768w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Here you will see a list of 5 files and 1 directory<\/p>\n<ul>\n<li><strong>ansible.cfg\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0=<\/strong>\u00a0 it contains the ansible configurations, we just need this file to run ansible.<\/li>\n<li><strong>application.yml\u00a0 \u00a0=\u00a0 <\/strong>it contains the host information and order of roles, like which role needs to execute first.<\/li>\n<li><strong>hosts\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 =\u00a0 <\/strong>it contains a list of hosts as a group.<\/li>\n<li><strong>passfile.pem\u00a0 \u00a0 \u00a0 \u00a0 \u00a0=\u00a0 <\/strong>it will contain your remote virtual machine&#8217;s private key.<\/li>\n<li><strong>README.md<\/strong>\u00a0 \u00a0 \u00a0 \u00a0 <strong>=<\/strong>\u00a0 it contains some execution commands for your reference.<\/li>\n<li><strong>roles\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/strong>=\u00a0 it contains the list of roles.<\/li>\n<\/ul>\n<h3><strong>Alter the script to make it <\/strong><span style=\"font-size: 18.72px;\">run.<\/span><\/h3>\n<ul>\n<li>Open the &#8220;<strong>hosts<\/strong>&#8221; file and add your remote server&#8217;s public ip address under the group &#8220;[all]&#8221; .<\/li>\n<\/ul>\n<pre>cd springboot_ansible\r\nls\r\nsudo vi hosts<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/8-1.webp\" alt=\"open host file \" width=\"776\" height=\"133\" class=\"aligncenter wp-image-3311 size-full\" title=\"open host file \" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/8-1.webp 776w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/8-1-300x51.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/8-1-768x132.webp 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/9-1.webp\" alt=\"add host ip\" width=\"1189\" height=\"392\" class=\"aligncenter wp-image-3312 size-full\" title=\"add host ip\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/9-1.webp 1189w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/9-1-300x99.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/9-1-1024x338.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/9-1-768x253.webp 768w\" sizes=\"(max-width: 1189px) 100vw, 1189px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Open the &#8220;<strong>application.yml<\/strong>&#8221; file and make sure your remote server&#8217;s username and host group, roles are correct.<\/li>\n<\/ul>\n<pre>sudo vi application.yml<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/10-1.webp\" alt=\"open application.yml file\" width=\"1095\" height=\"119\" class=\"aligncenter wp-image-3313 size-full\" title=\"open application.yml file\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/10-1.webp 1095w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/10-1-300x33.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/10-1-1024x111.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/10-1-768x83.webp 768w\" sizes=\"(max-width: 1095px) 100vw, 1095px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/11-1.webp\" alt=\"verify application.yml file content\" width=\"1377\" height=\"557\" class=\"aligncenter wp-image-3314 size-full\" title=\"verify application.yml file content\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/11-1.webp 1377w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/11-1-300x121.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/11-1-1024x414.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/11-1-768x311.webp 768w\" sizes=\"(max-width: 1377px) 100vw, 1377px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Open &#8220;<strong>passfile.pem<\/strong>&#8221; add your remote server&#8217;s private key and save.<\/li>\n<\/ul>\n<pre>sudo vi passfile.pem<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass.webp\" alt=\"open .pem file\" width=\"1165\" height=\"115\" class=\"aligncenter wp-image-3316 size-full\" title=\"open .pem file\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass.webp 1165w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass-300x30.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass-1024x101.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass-768x76.webp 768w\" sizes=\"(max-width: 1165px) 100vw, 1165px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass2.webp\" alt=\"add private key\" width=\"973\" height=\"683\" class=\"aligncenter wp-image-3317 size-full\" title=\"add private key\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass2.webp 973w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass2-300x211.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass2-768x539.webp 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Change the permission for &#8220;passfile.pem&#8221; file<\/li>\n<\/ul>\n<pre>ls -la\r\nsudo chmod 400 passfile.pem\r\nls -la<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass3.webp\" alt=\"change permission for private key file\" width=\"880\" height=\"519\" class=\"aligncenter wp-image-3318 size-full\" title=\"change permission for private key file\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass3.webp 880w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass3-300x177.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pass3-768x453.webp 768w\" sizes=\"(max-width: 880px) 100vw, 880px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Run the Ansible playbook command.<\/h3>\n<ul>\n<li>This script will install Apache, java, and Maven, and also it will create separate Apache virtual host files with new users.<\/li>\n<li>You can view the command in this path &#8221; <strong>cat roles\/springboot\/tasks\/main.yml<\/strong> &#8220;<\/li>\n<li>Pass the required values to the variables<\/li>\n<\/ul>\n<p>1. username\u00a0 \u00a0 \u00a0 \u00a0 = Username which you want to create in the remote server<\/p>\n<p>2. domain name = Enter the domain name for your remote server, if you don&#8217;t have a domain use public IP instead.<\/p>\n<pre>ansible-playbook -i hosts -e \"username=&lt;username&gt; domainname=&lt;domainname&gt; portno=8080\" --private-key passfile.pem application.yml -vvv\r\n\r\nEg:\r\nansible-playbook -i hosts -e \"username=basker domainname=techno.com portno=8080\" --private-key passfile.pem application.yml -vvv<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1.webp\" alt=\"Run ansible playbook\" width=\"1634\" height=\"371\" class=\"aligncenter wp-image-3315 size-full\" title=\"Run ansible playbook\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1.webp 1634w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1-300x68.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1-1024x232.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1-768x174.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/12-1-1536x349.webp 1536w\" sizes=\"(max-width: 1634px) 100vw, 1634px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Run the above command and wait until the script get completed.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1.webp\" alt=\"ansible playbook execution completed\" width=\"1634\" height=\"512\" class=\"aligncenter wp-image-3319 size-full\" title=\"ansible playbook execution completed\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1.webp 1634w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1-300x94.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1-1024x321.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1-768x241.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/13-1-1536x481.webp 1536w\" sizes=\"(max-width: 1634px) 100vw, 1634px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now we have successfully installed all the dependencies to run &#8220;<strong>spring boot<\/strong>&#8221; applications lets verify the dependencies on the remote server one by one.<\/p>\n<ul>\n<li>Check whether the user is created or not<\/li>\n<\/ul>\n<pre>cd \/home\r\nls<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/14-1.webp\" alt=\"check user\" width=\"876\" height=\"195\" class=\"aligncenter wp-image-3320 size-full\" title=\"check user\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/14-1.webp 876w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/14-1-300x67.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/14-1-768x171.webp 768w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>There will be an Apache virtual host file with a new user.<\/li>\n<\/ul>\n<pre>cd \/etc\/httpd\/conf.d\/virtualhost\/\r\nls\r\ncat techno.com.conf<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/15-1.webp\" alt=\"apache vhost file\" width=\"1153\" height=\"536\" class=\"aligncenter wp-image-3321 size-full\" title=\"apache vhost file\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/15-1.webp 1153w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/15-1-300x139.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/15-1-1024x476.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/15-1-768x357.webp 768w\" sizes=\"(max-width: 1153px) 100vw, 1153px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>check the version of Maven, apache, java<\/li>\n<\/ul>\n<pre>mvn --version\r\nhttpd -V\r\njava --version<\/pre>\n<h3><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/16-1.webp\" alt=\"check dependencies version\" width=\"1141\" height=\"849\" class=\"aligncenter wp-image-3322 size-full\" title=\"check dependencies version\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/16-1.webp 1141w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/16-1-300x223.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/16-1-1024x762.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/16-1-768x571.webp 768w\" sizes=\"(max-width: 1141px) 100vw, 1141px\" \/><\/h3>\n<h3><\/h3>\n<h3>Run sample spring boot application<\/h3>\n<ul>\n<li>goto your application working directory, which is &#8220;<strong>\/home\/&lt;username&gt;\/public_html<\/strong>&#8220;<\/li>\n<li>clone sample spring boot application source code from git.<\/li>\n<\/ul>\n<pre>sudo su\r\ncd \/home\/basker\/public_html\r\npwd\r\nsudo git clone https:\/\/github.com\/spring-guides\/gs-spring-boot.git\r\nls\r\ncd gs-spring-boot\/initial\/<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/17-1.webp\" alt=\"clone spring boot source code\" width=\"1326\" height=\"476\" class=\"aligncenter wp-image-3323 size-full\" title=\"clone spring boot source code\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/17-1.webp 1326w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/17-1-300x108.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/17-1-1024x368.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/17-1-768x276.webp 768w\" sizes=\"(max-width: 1326px) 100vw, 1326px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Run your application using the below command<\/li>\n<\/ul>\n<pre>sudo <span>mvn spring-boot:run<\/span><\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1.webp\" alt=\"Run spring boot\" width=\"1646\" height=\"569\" class=\"aligncenter wp-image-3324 size-full\" title=\"Run spring boot\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1.webp 1646w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1-300x104.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1-1024x354.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1-768x265.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/18-1-1536x531.webp 1536w\" sizes=\"(max-width: 1646px) 100vw, 1646px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1.webp\" alt=\"check port\" width=\"1617\" height=\"687\" class=\"aligncenter wp-image-3325 size-full\" title=\"check port\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1.webp 1617w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1-300x127.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1-1024x435.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1-768x326.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/19-1-1536x653.webp 1536w\" sizes=\"(max-width: 1617px) 100vw, 1617px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1.webp\" alt=\"spring boot execution\" width=\"1559\" height=\"781\" class=\"aligncenter wp-image-3326 size-full\" title=\"spring boot execution\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1.webp 1559w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1-300x150.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1-1024x513.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1-768x385.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/20-1-1536x769.webp 1536w\" sizes=\"(max-width: 1559px) 100vw, 1559px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Now copy your remote server&#8217;s public IP and check on a browser with ports 8080 and 80.<\/li>\n<\/ul>\n<pre>http:\/\/&lt;publicip&gt;:8080<\/pre>\n<pre>http:\/\/&lt;publicip&gt;:80<\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/21-1.webp\" alt=\"spring boot on port 8080\" width=\"1524\" height=\"429\" class=\"aligncenter wp-image-3327 size-full\" title=\"spring boot on port 8080\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/21-1.webp 1524w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/21-1-300x84.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/21-1-1024x288.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/21-1-768x216.webp 768w\" sizes=\"(max-width: 1524px) 100vw, 1524px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/22-1.webp\" alt=\"spring boot on port 80\" width=\"1351\" height=\"494\" class=\"aligncenter wp-image-3328 size-full\" title=\"spring boot on port 80\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/22-1.webp 1351w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/22-1-300x110.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/22-1-1024x374.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/22-1-768x281.webp 768w\" sizes=\"(max-width: 1351px) 100vw, 1351px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Port &#8220;8080, 80&#8221; must be open in the server&#8217;s security group.<\/li>\n<li>our application will run in both 8080 and 80 because we have enabled a proxy between 8080 and 80 in the &#8220;apache virtual host file&#8221;\u00a0 so that, whatever traffic comes to 8080 will also come to 80.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Here the proxy configurations<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pro.webp\" alt=\"proxy configuration\" width=\"1014\" height=\"446\" class=\"aligncenter wp-image-3330 size-full\" title=\"proxy configuration\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pro.webp 1014w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pro-300x132.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/pro-768x338.webp 768w\" sizes=\"(max-width: 1014px) 100vw, 1014px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can also view the access log on the server.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1.webp\" alt=\"spring boot access log\" width=\"1626\" height=\"642\" class=\"aligncenter wp-image-3329 size-full\" title=\"spring boot access log\" srcset=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1.webp 1626w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1-300x118.webp 300w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1-1024x404.webp 1024w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1-768x303.webp 768w, https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/23-1-1536x606.webp 1536w\" sizes=\"(max-width: 1626px) 100vw, 1626px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now we have Successfully completed our spring boot application setup with Ansible.!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In today&#8217;s rapidly evolving IT landscape, automation is key to efficient and scalable infrastructure management. Spring Boot, a popular Java-based framework for building web applications, combined with Ansible, a robust automation tool, offers a potent solution for orchestrating server setup and configuration. This guide will walk you through the process of using Ansible to automate [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":3341,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Setup spring boot server using Ansible script in Amazon Linux 2<\/title>\n<meta name=\"description\" content=\"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.\" \/>\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.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setup spring boot server using Ansible script in Amazon Linux 2\" \/>\n<meta property=\"og:description\" content=\"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\" \/>\n<meta property=\"og:site_name\" content=\"easydeploy.io\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-19T12:26:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Baskar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Baskar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\"},\"author\":{\"name\":\"Baskar\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57\"},\"headline\":\"Setup spring boot server using Ansible script in Amazonlinux 2\",\"datePublished\":\"2024-01-19T12:26:20+00:00\",\"dateModified\":\"2024-01-19T12:26:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\"},\"wordCount\":598,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png\",\"articleSection\":[\"News\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\",\"name\":\"Setup spring boot server using Ansible script in Amazon Linux 2\",\"isPartOf\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png\",\"datePublished\":\"2024-01-19T12:26:20+00:00\",\"dateModified\":\"2024-01-19T12:26:20+00:00\",\"description\":\"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png\",\"width\":1280,\"height\":720,\"caption\":\"spring boot server\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.easydeploy.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setup spring boot server using Ansible script in Amazonlinux 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#website\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"name\":\"easydeploy.io\",\"description\":\"A Cloud Architect Company\",\"publisher\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#organization\",\"name\":\"EasyDeploy Technologies Pvt Ltd\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"contentUrl\":\"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png\",\"width\":536,\"height\":100,\"caption\":\"EasyDeploy Technologies Pvt Ltd\"},\"image\":{\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57\",\"name\":\"Baskar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g\",\"caption\":\"Baskar\"},\"description\":\"Junior DevOPs Engineer, working @ Easydeploy Technologies Pvt Ltd, Coimbatore, with 1 year of experience, and currently Doing server configurations by automation using Ansible &amp; building strong AWS resources using Terraform, and creating a containerized application using Docker.\",\"url\":\"https:\/\/www.easydeploy.io\/blog\/author\/baskar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setup spring boot server using Ansible script in Amazon Linux 2","description":"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.","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.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/","og_locale":"en_GB","og_type":"article","og_title":"Setup spring boot server using Ansible script in Amazon Linux 2","og_description":"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.","og_url":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/","og_site_name":"easydeploy.io","article_published_time":"2024-01-19T12:26:20+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png","type":"image\/png"}],"author":"Baskar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Baskar","Estimated reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#article","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/"},"author":{"name":"Baskar","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57"},"headline":"Setup spring boot server using Ansible script in Amazonlinux 2","datePublished":"2024-01-19T12:26:20+00:00","dateModified":"2024-01-19T12:26:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/"},"wordCount":598,"commentCount":0,"publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png","articleSection":["News"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/","url":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/","name":"Setup spring boot server using Ansible script in Amazon Linux 2","isPartOf":{"@id":"https:\/\/www.easydeploy.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png","datePublished":"2024-01-19T12:26:20+00:00","dateModified":"2024-01-19T12:26:20+00:00","description":"Get to know the steps to setup spring boot server using ansible script in Amazon linux 2. Elevate Spring Boot setup using Ansible script.","breadcrumb":{"@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#primaryimage","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2023\/12\/Setup-spring-boot-server-Ansible-script-in-Amazonlinux-2.png","width":1280,"height":720,"caption":"spring boot server"},{"@type":"BreadcrumbList","@id":"https:\/\/www.easydeploy.io\/blog\/setup-spring-boot-server-using-ansible-script-in-amazonlinux-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.easydeploy.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Setup spring boot server using Ansible script in Amazonlinux 2"}]},{"@type":"WebSite","@id":"https:\/\/www.easydeploy.io\/blog\/#website","url":"https:\/\/www.easydeploy.io\/blog\/","name":"easydeploy.io","description":"A Cloud Architect Company","publisher":{"@id":"https:\/\/www.easydeploy.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.easydeploy.io\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.easydeploy.io\/blog\/#organization","name":"EasyDeploy Technologies Pvt Ltd","url":"https:\/\/www.easydeploy.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","contentUrl":"https:\/\/www.easydeploy.io\/blog\/wp-content\/uploads\/2019\/02\/easydeploy.png","width":536,"height":100,"caption":"EasyDeploy Technologies Pvt Ltd"},"image":{"@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/0262af2f2f7181c9fc1da14688a26c57","name":"Baskar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.easydeploy.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63916b522c59a77898bbfc76156c9bc7?s=96&d=mm&r=g","caption":"Baskar"},"description":"Junior DevOPs Engineer, working @ Easydeploy Technologies Pvt Ltd, Coimbatore, with 1 year of experience, and currently Doing server configurations by automation using Ansible &amp; building strong AWS resources using Terraform, and creating a containerized application using Docker.","url":"https:\/\/www.easydeploy.io\/blog\/author\/baskar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3300"}],"collection":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/comments?post=3300"}],"version-history":[{"count":6,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3300\/revisions"}],"predecessor-version":[{"id":3339,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/posts\/3300\/revisions\/3339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media\/3341"}],"wp:attachment":[{"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/media?parent=3300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/categories?post=3300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.easydeploy.io\/blog\/wp-json\/wp\/v2\/tags?post=3300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}