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

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 83

  • @JavaHomeCloud
    @JavaHomeCloud  26 дней назад

    🌟 Welcome to Java Home Cloud 🌟
    Register for Online Training 👉 bit.ly/3vuBQqb
    javahome.in

  • @starsystechnologies6413
    @starsystechnologies6413 3 года назад +20

    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 2 года назад

    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 👍

  • @GN-fv5ek
    @GN-fv5ek 2 года назад

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

  • @dotdashdotdot
    @dotdashdotdot 4 года назад +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.

  • @SureshKumar-gh8vi
    @SureshKumar-gh8vi 3 года назад +3

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

  • @hassinba
    @hassinba 3 года назад +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!

  • @pravanjanrath
    @pravanjanrath Год назад +1

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

  • @saikumarramadasu9700
    @saikumarramadasu9700 2 года назад

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

  • @pratikoturkar123
    @pratikoturkar123 4 года назад +1

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

  • @TheDrummeroftheTree
    @TheDrummeroftheTree 3 года назад +2

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

  • @olakunleoni1514
    @olakunleoni1514 3 года назад

    Subscribed! You did it without any complications. Thanks

  • @govindaddalarao1488
    @govindaddalarao1488 3 года назад

    Thanks for your simple explaination and presentation, Good content

  • @meruvabalaji1500
    @meruvabalaji1500 3 года назад +1

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

    • @JavaHomeCloud
      @JavaHomeCloud  3 года назад +1

      Glad it helped, please do subscribe and share

  • @duncanowino7653
    @duncanowino7653 4 года назад +2

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

  • @bryanz1945
    @bryanz1945 Год назад

    Simple but Very useful. Thanks!!

  • @yogidilip
    @yogidilip 2 года назад

    Great video. Short and to the point.

  • @GuruPrasad-be9ff
    @GuruPrasad-be9ff 4 года назад +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 2 года назад

    Fantastic explain. Really thanks sir..

  • @prasadrao5333
    @prasadrao5333 4 месяца назад +1

    outstanding video

  • @luismanuelmorales7194
    @luismanuelmorales7194 3 года назад +1

    Excelente video! Muchas gracias!

  • @arig2519
    @arig2519 4 года назад +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 3 года назад

      same issue faced by me

    • @nguyenminh15988
      @nguyenminh15988 3 года назад

      @@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 3 года назад

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

    • @Mistysoil
      @Mistysoil 2 года назад

      @@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 2 года назад

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

  • @srinivasantarvedi
    @srinivasantarvedi Год назад

    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?

  • @kamalakannand9651
    @kamalakannand9651 2 года назад

    excellent this deploy video

  • @karthickudatha335
    @karthickudatha335 2 года назад

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

  • @roya2045
    @roya2045 4 года назад

    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

  • @hieunguyenofficial9497
    @hieunguyenofficial9497 3 года назад

    Thanks you very much. Very useful.

  • @behumanf1rst
    @behumanf1rst 4 года назад

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

  • @pashamramesh037
    @pashamramesh037 4 года назад

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

  • @markfencingman
    @markfencingman 3 года назад

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

  • @nikhilverma1552
    @nikhilverma1552 3 года назад

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

  • @Googlepaynnn
    @Googlepaynnn 3 года назад

    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

  • @Muthukumar_Ramu
    @Muthukumar_Ramu 2 года назад

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

  • @rajashekark3106
    @rajashekark3106 4 года назад

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

  • @juergenschubert3247
    @juergenschubert3247 3 года назад

    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  3 года назад +1

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

  • @arieff1508
    @arieff1508 4 года назад

    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

  • @shilpachaudhary6791
    @shilpachaudhary6791 4 года назад

    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 2 года назад +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

    • @JavaHomeCloud
      @JavaHomeCloud  2 года назад +1

      Check your SSH private key, Its wrong or check key permissions

    • @MAANJA_BOYS_ADDA
      @MAANJA_BOYS_ADDA 2 года назад

      @@JavaHomeCloud thank you

  • @kiritik1163
    @kiritik1163 3 года назад

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

  • @balajisundar605
    @balajisundar605 2 года назад

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

    • @JavaHomeCloud
      @JavaHomeCloud  2 года назад

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

    • @balajisundar605
      @balajisundar605 2 года назад

      @@JavaHomeCloud thank you sir

    • @balajisundar605
      @balajisundar605 2 года назад

      I have subscribed to your courses in Udemy for DevOps

  • @ashok.9761
    @ashok.9761 4 года назад

    Are you setup ssh key gen between Jenkins and apache node

  • @lolalola2354
    @lolalola2354 4 года назад

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

  • @raghavendra0708
    @raghavendra0708 2 года назад +1

    super like

  • @babasahebmunde6365
    @babasahebmunde6365 2 года назад

    Thank you sir

  • @nah0221
    @nah0221 3 года назад +1

    thank you !

  • @nashariff5441
    @nashariff5441 3 года назад +1

    Thanks.

  • @GN-fv5ek
    @GN-fv5ek 2 года назад

    Subscribed

  • @tiberiumihairezus417
    @tiberiumihairezus417 Месяц назад

    Buy this man a decent mic

  • @alexkuligowski4092
    @alexkuligowski4092 4 года назад

    Anyone else notice mic bumping?