How to run Ansible playbook from Jenkins pipeline job | Ansible Jenkins Integration| DevOps Tutorial

Sdílet
Vložit
  • čas přidán 12. 09. 2024
  • In this demo you will see how to run Ansible playbooks from Jenkins using ansible plugin.
    For Online/Classroom trainings and project support please contact
    Java Home Cloud, Banglore India
    +919886611117

Komentáře • 81

  • @starsystechnologies6413
    @starsystechnologies6413 Před 3 lety +19

    I saw few videos those are titled with DevOps , every video they prepared for 7-10 hours but by the end of the session you learn nothing (just theory and overview) . But this video just in few mins with clear steps he explained how to work with ansible , much appreciated. Great 👍

  • @vandanajha9915
    @vandanajha9915 Před rokem

    Brilliant short and crisp video for someone who wants to learn and run an ansible playbook using Jenkins pipeline in 10 min. Thank you very much for the great video 👍

  • @SureshKumar-gh8vi
    @SureshKumar-gh8vi Před 2 lety +3

    Appreciate the effort you put in to create such a video. That helped me quickly while setting up a similar environment.

  • @dotdashdotdot
    @dotdashdotdot Před 4 lety +4

    Great video, step by step. Even shows installing Ansible and Git after receiving errors. It helps to know something about Ansible, Git and Jenkins before watching this video.

  • @hassinba
    @hassinba Před 2 lety +2

    This is exactly what I've been looking for. Now running Ansible playbooks using my repo as the source, and my team can all collab and work on playbooks together. Thanks!

  • @pravanjanrath7408
    @pravanjanrath7408 Před rokem +1

    Great video! Very clear instructions and I was able to setup the pipeline in one go. Thanks a lot.

  • @GN-fv5ek
    @GN-fv5ek Před 2 lety

    Now, I am in love with this channel's content....

  • @saikumarramadasu9700
    @saikumarramadasu9700 Před rokem

    It was very good and understandable explanation for integration of ansible to Jenkins... thankyou sir! Plz Keep post latest videos on devops

  • @pratikoturkar123
    @pratikoturkar123 Před 3 lety +1

    I have only one word. Superb................................. A well explained video.

  • @TheDrummeroftheTree
    @TheDrummeroftheTree Před 3 lety +2

    Thanks for sharing such useful content my friend. You saved my computer from being thrown away from a second floor XD.

  • @olakunleoni1514
    @olakunleoni1514 Před 2 lety

    Subscribed! You did it without any complications. Thanks

  • @govindaddalarao1488
    @govindaddalarao1488 Před 2 lety

    Thanks for your simple explaination and presentation, Good content

  • @yogidilip
    @yogidilip Před 2 lety

    Great video. Short and to the point.

  • @meruvabalaji1500
    @meruvabalaji1500 Před 3 lety +1

    Great explanation, thanks a lot. I followed the same steps and it worked for me.

    • @JavaHomeCloud
      @JavaHomeCloud  Před 3 lety +1

      Glad it helped, please do subscribe and share

  • @prasadrao5333
    @prasadrao5333 Před měsícem +1

    outstanding video

  • @duncanowino7653
    @duncanowino7653 Před 3 lety +2

    Nice. I followed this and was able to setup my pipeline

  • @bryanz1945
    @bryanz1945 Před rokem

    Simple but Very useful. Thanks!!

  • @GuruPrasad-be9ff
    @GuruPrasad-be9ff Před 3 lety +1

    I am very very to watch your videos and i got acquired a lot of knowledge,
    I am requesting you to please upload a video with git , sonarqube, maven, nexus, docker, ansible, kubernetes , whole tools in one single CICD pipeline
    Thanks in Advance.....

  • @pushparajp1864
    @pushparajp1864 Před 2 lety

    Fantastic explain. Really thanks sir..

  • @kamalakannand9651
    @kamalakannand9651 Před 2 lety

    excellent this deploy video

  • @luismanuelmorales7194
    @luismanuelmorales7194 Před 3 lety +1

    Excelente video! Muchas gracias!

  • @nashariff5441
    @nashariff5441 Před 3 lety +1

    Thanks.

  • @hieunguyenofficial9497

    Thanks you very much. Very useful.

  • @nah0221
    @nah0221 Před 3 lety +1

    thank you !

  • @srinivasantarvedi
    @srinivasantarvedi Před 11 měsíci

    I assume you have installed ansible on the same machine where jenkins also running, correct me if i am wrong, help understand what changes i have to do if i have to call the ansible playbook from an existing ansible server that is not having jenkins setup... solution, i am assuming at this point of time to run a sh command to do a remote ssh command to my ansible server and pass ansible playbook using -c argument?

  • @raghavendra0708
    @raghavendra0708 Před 2 lety +1

    super like

  • @arig2519
    @arig2519 Před 3 lety +3

    I have installed Jenkins & Ansible on the same ec2 instance and also provided the SSH details as you showed on this video but still my job is failing with error:
    "fatal: [localhost]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Host key verification failed.", "unreachable": true}".
    Ideally, I don't think it requires to ssh if ansible is already installed on the same Jenkins server.
    Any suggestions?

    • @rohitbhushan7229
      @rohitbhushan7229 Před 3 lety

      same issue faced by me

    • @nguyenminh15988
      @nguyenminh15988 Před 3 lety

      @@rohitbhushan7229 yah same issue with me
      fatal: [54.160.182.77]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Host key verification failed.
      ", "unreachable": true}
      to retry, use: --limit @/var/lib/jenkins/workspace/ansible/apache.retry

    • @nguyenminh15988
      @nguyenminh15988 Před 3 lety

      hello i found solution for it we should enable host_key_checking = False in ansible config file

    • @Mistysoil
      @Mistysoil Před 2 lety

      @@nguyenminh15988 I am also getting same issue fatal: : UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh:: Permission denied (publickey,password).", "unreachable": true}

    • @Mistysoil
      @Mistysoil Před 2 lety

      but its not fixed with above I tried changing config setting. Have u changed it in ansible controller?

  • @babasahebmunde6365
    @babasahebmunde6365 Před 2 lety

    Thank you sir

  • @behumanf1rst
    @behumanf1rst Před 4 lety

    good. it could have been better what is the purpose of ansible in Jenkins, with and without Ansible in Jenkins

  • @GN-fv5ek
    @GN-fv5ek Před 2 lety

    Subscribed

  • @roya2045
    @roya2045 Před 3 lety

    Hi the ansible playbook structure/spacing or what its called as indentation is it common on all playbooks that is written or does it change. Its bit confusing where and when to use spaces & hyphens in a playbook. I am not from a coding or developer background hence it becomes more confusing is there a editor to automatically take the spacing & hyphens when writing the playbook. Can you make a video on that.Kindly reply

  • @karthickudatha335
    @karthickudatha335 Před 2 lety

    Do we have privilege to execute a set of ansible adhoc commands as a pipeline

  • @juergenschubert3247
    @juergenschubert3247 Před 3 lety

    Great Video! Wondering when you are working with Ansible variables like IP and others which you do have configured in a var file. Do you see a change so Jenkins will ask for the values instead of having them into a var file as the IP will be variable and it might be an option to get asked for this value?

    • @JavaHomeCloud
      @JavaHomeCloud  Před 3 lety +1

      check this,
      input message: 'enter password', parameters: [password(defaultValue: 'value', description: '', name: 'hidden')]

  • @pashamramesh037
    @pashamramesh037 Před 3 lety

    Have you tried ansible plugin using ssh username and password credentials instead of ssh private key?

  • @nikhilverma1552
    @nikhilverma1552 Před 3 lety

    sir can we delete conatiners from remote host via ansible playbook.....plz guide

  • @mandlaanilbabu
    @mandlaanilbabu Před 3 lety

    Hi When i tried to install ansible getting the below error.
    sudo yum-config-manager --enable epel
    Loaded plugins: extras_suggestions, langpacks, priorities, update-motd

  • @shilpachaudhary6791
    @shilpachaudhary6791 Před 3 lety

    Your videos have been a lot of help. I am trying to follow the demo, but I am getting time out error for fetch from Git, can you suggest some solution for it?

  • @MAANJA_BOYS_ADDA
    @MAANJA_BOYS_ADDA Před 2 lety +1

    UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).", "unreachable": true} im getting this error

  • @kiritik1163
    @kiritik1163 Před 2 lety

    I get error: playbook could not be found in jenkins pipeline. Any idea?

  • @rajashekark3106
    @rajashekark3106 Před 3 lety

    Which userid and private id u are given may I know that is ansible userid and private..or Apache id key

  • @muthukumarramu3149
    @muthukumarramu3149 Před 2 lety

    Hi Bro, Incase if i have private github repo.. in that scenario how to do that.

  • @arieff1508
    @arieff1508 Před 3 lety

    Hi, I have scenario like jenkins and ansible server two different aws ec2 servers i have been trying to deploy an app by using jenkins pipeline. Please tell me how to integrate jenkins and ansible b/w two different sever. Please suggest how write jenkins pipeline job

  • @markfencingman
    @markfencingman Před 2 lety

    Could you tell me part of which playlist on your channel is this video of?

  • @balajisundar605
    @balajisundar605 Před 2 lety

    No such DSL method 'Pipeline' found among steps
    I'm getting this error , dont know how to fix this

    • @JavaHomeCloud
      @JavaHomeCloud  Před 2 lety

      Seems you are using capital P in pipeline block, keep in lowercase

    • @balajisundar605
      @balajisundar605 Před 2 lety

      @@JavaHomeCloud thank you sir

    • @balajisundar605
      @balajisundar605 Před 2 lety

      I have subscribed to your courses in Udemy for DevOps

  • @lolalola2354
    @lolalola2354 Před 3 lety

    can you explain one more time user ec2-user from which box?

  • @ashok.9761
    @ashok.9761 Před 4 lety

    Are you setup ssh key gen between Jenkins and apache node

  • @alexkuligowski4092
    @alexkuligowski4092 Před 3 lety

    Anyone else notice mic bumping?