Ansible Tower Project synchronization with Git hub repositories

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
one and this is the last video on how to use it with our tower unstable at our organization so let's start opening the tower in the last video we show you how to sync your local folder would we'd get now we are going to focus on how to sync our git remote repository with tower so [Music] as I show you as I told you in the last video remote repositories are very useful to to hold Prussia sorry inventories metal scrapes rolls and clay books so to do so we are going to create a new project this new project will be called hello just underscore to demo let's go eat sing right now I put underscored so we can find it very fast I'm going to use my ring session mate imitation sorry here is asking me what kind of content management system we want to use to sing this brush from so we can choose man I'll give my career submission and read back inside as I show you before we are going to use github Enterprise so it's a it time what is the URL okay let's see this is the URL you see so far so far so good and now it's asking me what is the content management system branch so what is this we can put I can put here Sarah as I told you to show you before and we will only sync what civil ranch holds right so it's very useful to separate projects from development production DEP steps that there's status you can put here development as a best practice and then you create another project to only thing from production or from the master branch so this this is very good feature and I will live here in black living in bland will sing from the master branch only this is what is this I'm not going to use it right now what Prudential I'm going to be use it to access this in the repository remember that our get repository on IBM a github Enterprise always used SSH keys as a preferred way so we always have to even if the repository is public we have to authenticate somehow this way I already upload and configure it our SSH key from from my team so I'm selecting that credential and I click on save right so now already my project is already there let's find out and you can see it's in green you see there is a red green saree light here really dot this is telling me that the thinking was successful and if we if we want to we think this is going to show us all the step of thinking it from it from the repository and thinking was successful the time started finished and the revision this is the this course is very very good data because information because it's telling me what commit number is working on so if I don't know if the project was thinking or not we can always check this revision number okay what else so as I told you we can hold in this project we can hold playbooks rolls inventory or inventor scripts right in this case in this this repository we have playbooks and we have inventory first so I'm going to show you very fast also how to create a template where I am going to choose the playbook to run let's create a shop template and what the name will be will be demo get sync playbook I'm not very Krishna today not be very original I will put only check here so because I don't want to run to run it what inventory I'm going to use okay let's let use I have an idea let's create first our inventory and then use it from here so let's create an inventory that is this project incision means position second instance blue okay I need to tell it where the source of this inventor will be but before can do that I have to save it a with this and main information basic information completed okay now I have the source in Wharton available but I don't have anything here so I want to add initials to this inventory the sources basically is where or how I'm going to pop up my hostage I will create a source anyone think sorry source ok choose a source here I will specify that the source will be a project yeah right I have a file that is hold in the gate that is in a project in this tower instance so yeah basically it's a different project what project that would be you know I will repeat its demo good thing that is the Russian name and here is tell me what is the file in this project and it's challenge is telling me okay right away I find that there is file name across and you can use here so yeah that is the correct one and be very very careful not to mistake the name of this file because it is this file is named it differently you are not going to be able to choose it from here a tower basically will will say ok I don't find any file that with the name of cost so shouldn't so there is no cost 5 here so for example if you put hosts without the dress it without D s and in the end that will be not found so please be careful on this I will click on save and then after I save it you can see it here below the status of this resource here you can see that there is a gray cloud icon because this meaning this is the meaning of this is that the thing was not performed so I want to click on the starting process this bottom so the thinking is started has been stopped let's see we can check out and now the thing completed you can check on here to see the doc oh there is so many errors but the thinking was successful let's see if we have all the files all the hosts here the cost has been popped up and yeah spike of the errors that wish I saw there defined the host host are here and also the related groups are here for every of the cost we can see the groups also and the route groups all groups would whoops there are very and it's very very cool so we have our inventory from it now uploaded and the servers are are there so what we want to do now are going to create a shop I'm going to show you how to we can create a shop template from from get now wash up time let's put on the check inventory got inventory I'm going to use the inventory's just created I think it's in the last pages do a lot of testamentary here want to use just created one what project okay it's ink I don't know in the same mother manner that we choose our house file we can choose also our plate from here yeah the plate should be and should end with llaman attention so we can choose from this drop down menu sanford patching playbook credentials no need so basically we now have a template from a playbook that is stored in a git repository so this is the way we can we can sync our local folder to it and then that get remote repository converted into a Prussia inside our as with our organization and then use that project to create templates and inventory or inventory scripts so we hope this demo was good for you yeah useful so thank you very much for your attention wait
Info
Channel: Sebastian Gonzalez
Views: 3,322
Rating: 4.826087 out of 5
Keywords:
Id: G3secbZ7-k8
Channel Id: undefined
Length: 12min 51sec (771 seconds)
Published: Thu Mar 12 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.