Ansible Jenkins Integration | Jenkins Pipeline script to execute Ansible Playbook

  Рет қаралды 24,653

Ranjit Swain

Ranjit Swain

Жыл бұрын

Ansible Jenkins Integration | Jenkins Pipeline script to execute Ansible Playbook
Integrate Ansible in Jenkins and execute the playbook by writing the Pipeline script.
To integrate ansible in Jenkins we need ansible plugin to installed in the Jenkins server.
#devops #devopsproject #devopstutorial #devopstraining #devopsforbeginners #automation #ansible
SUBSCRIBE my channel:
/ @ranjitswain
: FOLLOW ME :
Instagram - / rs.ranjitswain
Facebook - / ranjit.swain.9
Twitter - / rs_ranjitswain

Пікірлер: 37
@songterence4186
@songterence4186 9 ай бұрын
Mr Ran, that's an awesome explanation. I enjoy watching your videos because you explicitly ensure they are easily understood by everyone.
@RanjitSwain
@RanjitSwain 9 ай бұрын
Thank you for your valuable comment! I'm glad it helped you.
@syamkumar7751
@syamkumar7751 Жыл бұрын
Awesome session 🎉
@RanjitSwain
@RanjitSwain Жыл бұрын
Thank you!
@shamshadansari2018
@shamshadansari2018 10 ай бұрын
after watching this nexus tutorial. i am your new subscriber Sir.. Thanks so much.. I was looking for nexus with jenkins
@RanjitSwain
@RanjitSwain 10 ай бұрын
Thanks 🙏
@Nohakislive
@Nohakislive Жыл бұрын
Nicely Explained ...👌
@RanjitSwain
@RanjitSwain Жыл бұрын
Glad you liked it
@ganeshrajput5925
@ganeshrajput5925 Жыл бұрын
Really helpful 👍
@RanjitSwain
@RanjitSwain Жыл бұрын
Glad it helped
@sagarsriva
@sagarsriva Жыл бұрын
great video
@RanjitSwain
@RanjitSwain Жыл бұрын
Glad you enjoyed it
@EntertainmentHouse377
@EntertainmentHouse377 10 ай бұрын
Hi sir.. Your session are always helpful to me.. But i have one question in this session.. Where i can find my private key
@RanjitSwain
@RanjitSwain 10 ай бұрын
Hi @EntertainmentHouse377, the private key file is the one which you create during the EC2 instance creation.
@gouravrelhan7372
@gouravrelhan7372 9 күн бұрын
Thank you so much . . I have multiple .yml files in which multiple roles are defined. So do we need to put abc.yml, def.yml like this comma separated? and put the inventory file path. Right and rest of the files in ansible jenkins will take by default? Is that correct?
@RanjitSwain
@RanjitSwain 8 күн бұрын
Hi @gouravrelhan7372, you can call multiple roles like this: roles: - role: name: myrole1 vars: host: "db1" myroles: - mysql1 - apache1 - role: name: myrole2 vars: host: "db2" myroles: - mysql2 - apache2
@237311
@237311 10 ай бұрын
After installing the Ansible plugin on the Jenkins server, it seems that the Ansible executable directory is located at '/var/lib/jenkins/plugins/'.
@RanjitSwain
@RanjitSwain 10 ай бұрын
Hi, no, it's not the Ansible executable directory. That is the plugins directory of Jenkins. You can execute a playbook from anywhere followed by the absolute path of the playbook
@bsk8643
@bsk8643 4 ай бұрын
We have a tower job which we execute from ansible.. is it possible to auto trigger the tower job using jenkins ? I am new to this so not sure if tower job is the one which executes playbook .. pls confirm
@RanjitSwain
@RanjitSwain 4 ай бұрын
Hi @bsk8643, yes, the tower job in Ansible tower executes the playbook. You can use "Ansible Tower" plugin in Jenkins to trigger tower jobs or, playbooks.
@vishalvaishnav5856
@vishalvaishnav5856 Жыл бұрын
Directly we can’t use ansible commands in Jenkins pipeline every time we have to use generator?
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi, here it is just explained how we can use the Ansible plugin in Jenkins to integrate. Yes, off course we can use Ansible commands directly in the pipeline to execute the playbook.
@anjaliadhikari4673
@anjaliadhikari4673 2 ай бұрын
I am expecting your reply. I am a student .I have my master machine and worker machine and enabled passwordless ssh connection. When i create a job to execute playbook on jenkins. I have chosen build step and shell command i have specified the absoulete path to my playbook which resides on master machine and that playbook should be executed in my worker machine. Manually it gets executed and when i run on jenkins i get permission denied issue. I cannot give read permission to any other user or group for id_rsa it throws error "bad permission" if i don't set permission to jenkins than how can it access the private key? I have also set the user and private key in jenkins under manage credentials but still that is throwing same error.. any help would be appreciated, Thank you
@RanjitSwain
@RanjitSwain Ай бұрын
Hi @anjaliadhikari4673, sorry for the late reply. You first need to setup the connectivity between ansible and Jenkins server. Also to work on different server you should use the key to connect to that server.
@nareshbabuy8530
@nareshbabuy8530 Жыл бұрын
sir please make a video on Jenkins-ansible-docker with separate servers for deploying a war file or jar file
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi Naresh, Thanks for your nice suggestion! I will make one shortly.
@nareshbabuy8530
@nareshbabuy8530 Жыл бұрын
Tq so much sir for ur response and reply
@jubriladeyi5291
@jubriladeyi5291 11 ай бұрын
should ansible be installed on the server where the jenkins runs from or on the server/docker-container used as agent?
@RanjitSwain
@RanjitSwain 11 ай бұрын
Hi, it’s up to you how you want to setup both ways it will work.
@237311
@237311 10 ай бұрын
@@RanjitSwain If let say I have the Ansible server installed in a separate box. How can I point the Jenkins pipeline script to execute the playbook from the Ansible server? What is the correct syntax to the Inventory file path of the remote Ansible server? Thanks
@237311
@237311 10 ай бұрын
I found out that the fields "Playbook file path in workspace" and "Inventory file path in workspace" are typically used when your Ansible playbook and inventory files are located within the Jenkins workspace.
@237311
@237311 10 ай бұрын
The only issue I have is how to specify the SSH credentials ID for my Ansible server in the Pipeline script. Do you have any ideas on how to do that?
@naren06938
@naren06938 Жыл бұрын
Sir, why u r always skipping some tasks, already installed, Alrdy server created, already configured....etc, Plsss make videos from scratch i.e. From EC2 preparation....then easy for us to practice ur videos.....
@RanjitSwain
@RanjitSwain Жыл бұрын
Dear Narendra, this video was made for who has some basic ideas on server creation and all. Thanks for your suggestions, In my upcoming videos I’ll keep this basics for the people who are completely new.
@WasimBuden
@WasimBuden Жыл бұрын
For newcomers, it may not be beneficial to omit the section on setting up authentication between Jenkins and a remote server, as it is crucial for resolving pipeline failures.
@RanjitSwain
@RanjitSwain Жыл бұрын
Hi, thanks for your valuable comment. Here is the link below on setting up authentication between Jenkins and a remote server. kzbin.info/www/bejne/ZmSngZKGYqZooK8
How to Integrate Ansible With Jenkins
9:37
CloudBeesTV
Рет қаралды 24 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 16 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 45 МЛН
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Learn Jenkins! Complete Jenkins Course - Zero to Hero
1:08:28
DevOps Journey
Рет қаралды 752 М.
Automating .NET Core Deployment to IIS with Jenkins | CI/CD Pipeline Setup
37:35
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 467 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 258 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 11 МЛН
#samsung #retrophone #nostalgia #x100
0:14
mobijunk
Рет қаралды 13 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН