Ansible Tower Demo Lab - Setup Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello my name is Christian Trujillo and welcome to the ansible tower demo lab setup this video was created with the assumption that you already have installed VirtualBox vagrant ansible engine and have cloned the github project locally on your Mac remember to follow along with instructions provided on the github project for more information in this project check out the link in the description below okay let's get started first go ahead and create a folder under documents called vagrant once created copy these two files to the folder server underscore access demo and the vagrant file these files are located under the setup files folder of the project [Music] now open the terminal window and navigate to the vagrant folder you've created under documents you can now interact with vagrant the first commands you will enter here is vagrant up this will run through the instructions of the vagrant file and will initiate the creation of the base lab first I will download the image for the ansible tower server [Music] it would create an SSH key pair to be used for authentication it would download two images a fedora and will deploy the servers [Music] this will also copy the SSH key pairs to all the servers the process will also assign the IP addresses to all the available VMs look at the github readme file for details on this [Music] now that you have the base left servers deployed let's check on the status of the VMS by entering the following command vagrant status as you can see here all three VMs are running now let's SSH into the tower server as soon as you log in you will see the answer what our login information this regard the IP address shown here as we will use the IP address that was assigned during the setup process make sure to copy the password now log into the tower server by typing in your browser HTTP colon slash slash 192 dot 168 that 50 that 10 [Music] the first thing that you will have to do here is add the subscription if you are a red Hatter follow the internal process to obtain a sub otherwise reach out to me and that will be more than happy to help you out if you are not at Red Hatter you can get a trial subscription by following the link on the instructions within the project now that you have subscribed at our server let's change the admin password but something that you can remember click on the users menu select admin enter a new password and click Save now let's set up your first inventory by going to the inventory menu for this step we'll create a manual inventory with the two initial servers we created for the base lab I like having a clean inventory so I will delete the demo inventory here this video was created when we only had two VMs besides the tower server if by the time you watch this video we had more demos and more VMs just follow the same steps listed here to add them click on the plus sign to add a new inventory and select inventory now enter the name of the inventory in this case I will use web servers select the organization and click Save now the hosts option will become available click on hosts and follow the steps on the screen [Music] now we're gonna add a project this will allow us to see all the available play books you can run from our demos click on the project menu and let's add a new project under Sen type select get enter a name then add the URL of the ansible tower demo github project as you will see here the project will start to synchronize with github the next step is to add the credentials this will allow you to run play books against your inventory click on credentials and let's add a new credential enter a name [Music] for the credential type we're going to choose machine enter vagrant for the username as I previously mentioned the vagrant file created SSH keepers to be used for authentication we will now get this key from the tower server by entering the following command these will print the key copy everything starting from beginning RSA private key [Music] now let's paste this into the SSH private key section and save the next step is to create our first playbook or template to do this go to the templates menu and let's add our first job template the first template will be our ping playbook to make sure we are able to reach our servers let's give it a name select the inventory we just created since we only have one project it should already be selected otherwise selected from the list now a list of all the available play books will be populated select the ping llamo under tools underscore Play Books folder make sure to select run for the job type also make sure to select the SSH key credentials we just created and click Save at this point the launch button will become available click launch this will execute the ping playbook and success we now have a fully functional ansible tower demo app to start running our demos thank you so much for watching if this video was helpful please give it a thumbs up and subscribe also please follow the github project as we plan to add more and more demos in the future again thanks for watching [Music]
Info
Channel: hciblogs
Views: 1,917
Rating: 5 out of 5
Keywords:
Id: b3Utw4YGmOI
Channel Id: undefined
Length: 8min 49sec (529 seconds)
Published: Tue Apr 14 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.