Ansible Tower workflow template and Survey | Ansible automation |RHEL7 |CentOS7

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello and welcome today we are gonna learn job workflow in instable tower and also having to show you how to create survey ok so if you're not familiar with NC bell tower please go through my previous videos which I have prepared there are three videos out there in my channel which is nothing but for installation ovens in simple term second one is for how to run end of command and playbook from instable tower and third one I have created in how to batch Linux system from inside whatever okay and in this video I am going to show you what is sensible workflow template and also what is survey so first things to go through with the survey or workflow you need to understand what is job workflow right so now you can see in template you can see there are this many are my jobs so this is the jobs which is going to do some work like fetching is going to do the pads from the system and configuring Apache is installing your boxes on the system and it is configuring and there are two other jobs we can have graded so in job workflow what we can do we can club all these jobs into one workflow and we can tell whether this job is success or not if this is Java structure then got to the next job and also we can put a condition saying that if it is not if it is spell for some regions then don't block then do not go to the next jobs so that is what we can specify in workflow and the other one is which is about survey in there we can able to aid ordered kitchens like before applying or before executing the workflow we have a chance to get created and also them could be a many order kitchens for example if um Basia system in fetching it could be a there could be an equation saying which level of patch you are applying on which is the version of kernel you are applying right that questions you can add in the server and also like when you are configuring our party system then you should be also a good to ask or you should be able to add service saying that which is the version of our party you are applying and also whether that Apache configuration is supplied in the test environment or not right those kind of added patience you can be able to add in service okay so let's do the configuration part let's start the demo ok so first thing how to create a template workflow your workflow we need a job so and I already have the job so that is the mandatory thing and now if I click on under template if I click on workflow here then this click on work for and just need to give a name here so I'll just given M saying [Music] they're up server provisioning and click on Sam okay so once I said that I can able to see there are two options which is now enable one is add survey as the other one is workflow so let me click corn workflow and now I can see there is an option called start which is a default one if I click on that day there is an empty workflow which is I can able to see here and I have to be able to job add jobs in that so what I will do I will just add a job first which is nothing but for fetching let me just do the patching first ok and then there are two options I can do I can whether delete this jobs and I can add additional one so let me just click on add here and there is one more and here while I am going to add a new jobs sorry I'm not sure what is happen okay let me just click on this ok so now when I click on this I should be able to see other options as well like configuring Apache or of configuring application so let me just click on configuring the first application here and when I am clicking on configure application it is asking me the types whether you are going to use this on success or failure or always right so it is nothing but saying that whether if the patching job is well then you are going to this jobs to run or when it is but says then you are going to run this jobs so that is what the condition of it is asking for so I would say on success let me just press the system once the system is patched then only it will go for configuration of my applications right so let me just click on that and see the Select so this is what the job flow you can just increase and reduce the size by scrolling your mouse button okay so let's look like a simple workflow which I have played it it is nothing but going to pass this is simple and then it is going to configure my application so let me just save it and once I save it I can say a twerp like let me click on workflow and let me just tell something about okay so which probably I'll say which version or individually I can shed in given a individually I can set for survey I find about two template and if I go to fetching and click on edit and here I can add survey individually I'm patching I can ask like which pets [Music] blank and wherever you can say Colonel probably version there is an extra variable version right and choose an answer like we can select multiple option here the text 1 is nothing but a single line of text which we need to use and there are other options I will tell you whether Rose let me just click on one here and say maximum length probably I need 10 to pin divine so I'll just say 30 then and if all enter is like I'll say 3 person 3 I at least the kernel version 13.6 probably higher dimension and say it and I have added one pitch in here once over here and I will be able to add multiple for now just let me say and once I save that I can also add the other jobs like configuring Apache application here also I can do something a survey and I can say [Music] whether this a blind test okay so the question is like again I I would say the version probably that is fine and also I can select here multiple choice right so choice should be like yes or no and it's a Edie and here I would say save and also it should prompt on launch I so let me just select on that okay so it is not here and that means the status okay so I am very didn't individually and I can also able to add in the workflow let me just go to workflow here and I can add server here let's say whether you have changed a proof for this project just an example I'm giving answer variable that says gens ticket probably and here also I would say the multiple option yes or no right yes no then let me just edit say so I'm then I'm just updated one workflow and also add some survey in there if I click on template and I would be able to initiate this workflow so let me just initiate it by clicking this rocket button and if I click on that I can able to see there is inefficient where you able to see whether you are you have an approach change for this ticket or not so if I click on this I have able to see that option yes and now and if I say yes okay I have a tense ticket and that is a probe so once I did that you can able to see that process is started and first what we're going to do it is just need to initialize here and we'll go to this job and we're going to best my system and then it will going to when she configure my apposite system okay so I don't want to take probably hardly one minute to complete all this let me just wait for some time and I can see that patching is initiated and you can also see there is one often called details if I click on this I would be able to see details what this job is doing [Music] this will not need to take much time because I have already patched my system and there are up-to-date so it will just mean to check and we'll going to complete it quickly I believe and as I can see it is done and it is now going to configure my Apache server [Music] and you can see my buzzy server task is also completed so if you wanted to see the details just click on details here and you'd be able to see it did not go through because maybe SFTP D is running on both the system that is why it is ignored and not doing in changes if you are if you have gone through my previous video which was about the patching of linear system then you will have some idea about why this condition is available for this playbook okay and if I go back again like in clicking on jobs and keeping on server provisioning and click on details again for configure Apache yes you can able to see that it is all then it was already configured earlier so that is why it has not changed anything okay so just to show you the demo for how the workflow works I use the same template or same job template okay so now I can be also able to test my system whether my Apache server is configured or not this is my not one I can able to see welcome to you into Linux it is working fine and also in not too it is also working fine so you can see how easy it is so and very useful in real time scenario so you'd be able to create jobs and you also be able to interconnect all the jobs in one single workflow to run right so let me know if you have any doubts feel free to type all the commands all our query in the user comments section let me know I'll just try to get back to you and also if this video is informative for you then please hit like and subscribe and share with your friends thank you so much for watching have a good day [Music] whatever I go whatever I sing I remember yo if you remember me [Music]
Info
Channel: Tune To Linux
Views: 9,460
Rating: undefined out of 5
Keywords: ansible tower workflow, ansible tower, ansible tower workflow job template, ansible tower workflow editor, ansible tower for beginners, ansible tower demo, ansible tower installation, ansible tower tutorial, ansible awx demo, ansible awx, ansible tower installation in centos, ansible tower installation in linux, ansible tower jobs, ansible tower job scheduling, ansible tower job templates, ansible tower survey, ansible tower survey example, ansible tower templates, ansible
Id: 1nnHBoEI1A4
Channel Id: undefined
Length: 13min 0sec (780 seconds)
Published: Tue Aug 21 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.