Ansible Interview Questions and Answers | Ansible Interview Questions and Answers for Experienced

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 125

  • @sportsdude9172
    @sportsdude9172 Рік тому +13

    I am preparing for DevOps interviews and this was very helpful. Thanks man! keep'em coming.

  • @anandsrivastava8734
    @anandsrivastava8734 2 роки тому +13

    Great content..keep posting interview sessions which will help us to prepare for DevOps battle 😊

  • @bhuvaneswaribhoopal1846
    @bhuvaneswaribhoopal1846 2 роки тому +9

    Hi, i have a doubt here, she gave the template and said mention the path where to install the nginx, but she didn't mention the installation command, like apt or yum , i am sorry, if i am wrong, just wanna make sure clear my doubt. I am also in learning stage so i am not sure it is correct or not, as i am practising in redhat linux server i written the playbook like this, please advice me , is both are same we can give path or command?
    ---
    - hosts: all
    become: true
    tasks:
    - name: intsall nginx latest version
    yum:
    - name: nginx
    state: present
    - name: start nginx
    service:
    name:nginx
    state: started
    enabled: yes
    ...

    • @applenjapple5236
      @applenjapple5236 2 роки тому

      she is calling variables in her code ... it means she have already Inventory and host list in her project

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому

      Yes!

    • @gouthamu5424
      @gouthamu5424 6 місяців тому

      So she is calling templates their, usually the web server configuration file will be copied from the template folder to the destination.
      something like this. apache.conf.j2 is file that will be copied to the destination folder.
      - name: Set up Apache virtualhost
      template:
      src: "apache.conf.j2"
      dest: "/etc/httpd/conf.d/{{ http_conf }}"

  • @SK-bu3ot
    @SK-bu3ot 2 роки тому +6

    Candidate's name should not be disclosed but great content for those preparing for devops interview
    Thanks sir

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому

      Yes, you are right. I never do that, can you please tell me the timestamp at which it was revealed? I will fix that.

    • @SK-bu3ot
      @SK-bu3ot 2 роки тому +2

      @@LogicOpsLab 2:07 2:19

    • @sagarahire-ys3uj
      @sagarahire-ys3uj 2 роки тому +1

      @@SK-bu3ot i thought u r talking abt written name...everyone might not have that problem so shud not be an issue

    • @selvamurugan9790
      @selvamurugan9790 Рік тому

      Handlers should be defined as State..

    • @LogicOpsLab
      @LogicOpsLab  Рік тому +1

      She granted her permission.

  • @Quilz06
    @Quilz06 2 роки тому +4

    Kya gazab ka ratta mara hai
    Concepts to dhele hein bilkul
    6:09 which security measures have you taken to secure SSH connections in production?
    6:45 Then what is continious deployment?
    7:37 I would be asking where have you used python in Ansible?
    ...
    I can just keep on asking questions to her until she starts telling me that she does not know what she is talking about.

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому +1

      Nopes, the candidate was that good. There were machine tests involved later and she aced them, as well.
      I have seen/taken a lot of interviews in my life, this candidate was one of those who stood easily in the top 5.
      But, thanks for the feedback, though.

    • @mgp88
      @mgp88 2 роки тому

      Started following the channel recently. Great content. Thanks for your efforts :)
      It would have been nice if the candidate could write the Nginx install task completely, and not like a pseudocpde. Also, it's a pity if we rely on an editor plugin to indent a simple YAML file :(
      Just honest feedback! Thank you

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому +1

      @@mgp88 Feedback taken, mgp. But, a lot of setups has to be done if we want to take a machine test, Which is sometimes quite difficult to get/make. But, good suggestion, will try getting that done.

    • @subhrahota
      @subhrahota Рік тому +1

      Exactly.The play book written by her was wrong with a lot of things missing including syntax,modules,indentation and configuration changes for nginx and the question asked by the interviewer was too easy that a fresher can crack this interview.I don't know on what basis she was selected 😅 anyways it depends how much exp guys taking the interview and how much knowledge he has.I have seen lot of good people after giving 99 percent answer correctly getting rejected.Sabka apna apna choice h😂😂

  • @minelielembet2895
    @minelielembet2895 Рік тому +1

    This is everything! Thanks for posting this

  • @barbieuniverse6855
    @barbieuniverse6855 Рік тому +1

    Very good🙏..keep working like this so that other techies can benefit 👍

  • @niravoza1989
    @niravoza1989 Рік тому +2

    Hi. Would you please set an index of each question? it would be easier to track and move back or forward to next question. I would request you to do indexing for all interview questions video.

  • @aneessheikh4120
    @aneessheikh4120 2 місяці тому

    thank you so much for sharing this informative video. it helps alot for those who are preparing for the interview

    • @LogicOpsLab
      @LogicOpsLab  2 місяці тому

      Means a lot, Anees. Thank you!

  • @prasanthipagidi7437
    @prasanthipagidi7437 2 роки тому +1

    Thank you brother for all of your videos... It will be really helpful...

  • @ankitsingh7802
    @ankitsingh7802 Рік тому

    Great video sir, I have subscribed you never gonna miss a video from you now on.

    • @LogicOpsLab
      @LogicOpsLab  Рік тому +1

      Means a lot, Ankit. Glad you liked it.

  • @aaminasiddiqui8613
    @aaminasiddiqui8613 11 місяців тому

    Thank you for the great content.
    I really like all your post.
    As per home background, looks like you are from Bangalore :)

  • @KamranAli-lx6cm
    @KamranAli-lx6cm Рік тому

    Very clear concepts 👏👏👏

  • @riddhimar4810
    @riddhimar4810 2 роки тому

    Amazing, thanks for posting these! 🙏🏻

  • @Neelsha
    @Neelsha 2 роки тому

    Thank you for providing us such important session very helpful

  • @clarencetexada8869
    @clarencetexada8869 2 роки тому

    I like this one, it was just basic ansible concepts

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому

      Thanks for the support, Clarence.

  • @prerna4497
    @prerna4497 2 роки тому +1

    Insightful one, as Always!!!

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому +1

      Thanks a ton, Prerna. Really means a lot!

  • @amolpatil6196
    @amolpatil6196 Рік тому

    Subeeererbbb, Thanks for sharing

  • @creativestudio5096
    @creativestudio5096 Рік тому

    Best useful thank you ❤❤

  • @felipeozoski
    @felipeozoski Рік тому

    Thanks for this man!

  • @Bharatkumar-dn3vs
    @Bharatkumar-dn3vs Рік тому

    Please post the videos bro..Excellent stuff videos ..helped me a lot

  • @guruandpiyu
    @guruandpiyu 2 місяці тому

    the man is very good

  • @mohithsai2192
    @mohithsai2192 9 місяців тому

    It is very helpful thank you

  • @SilentSolution
    @SilentSolution Рік тому

    Thanks for your information

    • @LogicOpsLab
      @LogicOpsLab  Рік тому

      So nice of you. Thanks for the feedback.

  • @sathya52
    @sathya52 Рік тому

    Nice upload … share is more content it would be more helpful to ppl like me.

  • @aniruddhadhabarde7372
    @aniruddhadhabarde7372 Рік тому

    sir, in the last playbook which command made Nginx to be installed on worker nodes????

    • @MnvSudhakar
      @MnvSudhakar Рік тому

      We have to give like this
      yum:
      name: Nginx
      state: present

    • @aniruddhadhabarde7372
      @aniruddhadhabarde7372 Рік тому

      @@MnvSudhakar yes, but i belive she was trying to include jinja2 templates there inside the playbook to make that happen!

    • @LogicOpsLab
      @LogicOpsLab  11 місяців тому

      What Sudhakar said. The one she showed is more of a Psuedo Code.

  • @shivak981
    @shivak981 6 місяців тому

    Where did she use the module to install the nginx package?

    • @riteshsalphale2252
      @riteshsalphale2252 6 місяців тому

      Yes, she must have included yum or apt module...correct me if i am wrong.

  • @yogeshwarghule
    @yogeshwarghule Рік тому +1

    Brother,I'm missing your all your interview videos ....please atleast upload one video for every tool for now

    • @LogicOpsLab
      @LogicOpsLab  Рік тому +1

      Working on it, mate. Appreciate your patience.

  • @zubandesi8052
    @zubandesi8052 2 роки тому

    wow! this will really help.

  • @lingrajbiradar4416
    @lingrajbiradar4416 2 роки тому

    It is great .. thank you

  • @АнастасияФахреева-и3ъ
    @АнастасияФахреева-и3ъ 5 місяців тому

    Isnt it roles and not modules in ansible? also she didn't mention collections

  • @nash12394
    @nash12394 Рік тому

    Do you have anymore Cloud topic like this. Can you please share the link here ?

    • @LogicOpsLab
      @LogicOpsLab  Рік тому

      There are 40 other videos like this in this playlist. Kindly take a look.

  • @bgr99
    @bgr99 Рік тому

    Very useful

  • @dhananjaypatil978
    @dhananjaypatil978 2 роки тому

    This was really helpful

  • @franchescototti8283
    @franchescototti8283 5 місяців тому

    last question is it the answer kubectl port-forward command?

  • @SanthoshKumar-cx3po
    @SanthoshKumar-cx3po Рік тому

    the voice seems to be of same person who spoke for Terraform interview questions.
    lol 😁

  • @preciouspearl5957
    @preciouspearl5957 Рік тому

    What tool she named take care of indentation?

  • @mrbicky4347
    @mrbicky4347 8 місяців тому

    1. What is configuration management?
    Ans: current we are working in multiple servers assumed we have to install git client in all of these server if we do manually it's a difficult and time taking process to overcome this problem we use configuration management.
    2.

    • @mrbicky4347
      @mrbicky4347 8 місяців тому

      2. Why you choose Ansible?
      Ans: Ansible is agent less but puppet and chef we have to provide a software or agent to manage nodes for that we have to install software or agent in all the node so I choose Ansible

  • @RaziqueAnsari2009
    @RaziqueAnsari2009 8 місяців тому

    Playbook will start from --- i believe however she has mentioned ..is this correct which she wrote???? So much indentation

    • @shilashm5691
      @shilashm5691 5 місяців тому

      playbook is written in yaml. So ---, is just like a seperator(which is optional). Plays are list of map (so list always start with -), so yeah, her answer is right

  • @11SAGARSHINDE
    @11SAGARSHINDE 2 роки тому

    Very nice..!!

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому

      Thanks for the support 🙏🏻

  • @amolpatil6196
    @amolpatil6196 Рік тому

    explain cicd process? can you pick this question

  • @hareeshsa8381
    @hareeshsa8381 2 роки тому

    Good information

  • @nanthanonklin5975
    @nanthanonklin5975 11 місяців тому

    Is it possible to get a DevOp role without industry experience? Would you give your candidate a chance?

    • @LogicOpsLab
      @LogicOpsLab  11 місяців тому

      Yes, but only and only if you have built a few projects.

  • @faisaliqbal7382
    @faisaliqbal7382 Рік тому

    Great

  • @aneessheikh4120
    @aneessheikh4120 2 місяці тому

    in my opinion playbook should look like this
    ---
    - hosts: all
    gather_facts: no
    become: true
    tasks:
    - name: Install Nginx
    yum:
    name: nginx
    state: latest
    ...
    please correct me if i am wrong

    • @LogicOpsLab
      @LogicOpsLab  Місяць тому

      Mostly good! Just sharing my 2 cents.
      - hosts: all
      gather_facts: yes # Enables gathering system facts
      become: true
      tasks:
      - name: Ensure Nginx is installed
      yum:
      name: nginx
      state: latest
      when: ansible_os_family == "RedHat" # Ensures the task runs only on RHEL-based systems
      - name: Ensure Nginx is running and enabled
      service:
      name: nginx
      state: started
      enabled: true
      Key Changes:
      gather_facts: yes: Recommended for tasks requiring system information.
      when Clause: Added a condition to ensure the task is executed only on RHEL-based systems.
      service Module: Added a task to ensure that Nginx is started and enabled on system boot.

  • @Geekgurlcode
    @Geekgurlcode Рік тому +1

    Sorry for the bad comments....I gave my laptop to my friend to learn..he made bad comments...I am extremly sorry brother...

    • @LogicOpsLab
      @LogicOpsLab  Рік тому

      It's alright, mate.

    • @Geekgurlcode
      @Geekgurlcode Рік тому

      @@LogicOpsLab I am extreamly sorry.He is frustrated of being in a job but nit getting salary for a year. Trust me he is a good guy either.

  • @yogeshupadhyay7367
    @yogeshupadhyay7367 5 місяців тому

    Bro tell me the experience of this folk who is in interview

  • @taufeeqtabarak
    @taufeeqtabarak 2 дні тому

    being an experienced devops engineer, i wont hire her for this role ,no intentations ,no use of handlers no use of displaying the status msg with register and debug

  • @professorcat431
    @professorcat431 Рік тому

    Certificate necessary?

    • @LogicOpsLab
      @LogicOpsLab  Рік тому +1

      ?

    • @professorcat431
      @professorcat431 Рік тому

      @@LogicOpsLab Does companies ask certifications for DevOps profile for 2+ year DevOps Engineer candidate?
      Has experience in iac(terraform) and configuration management with(ansible and ansible tower)
      I am looking for switching company, but never got a chance to get certifications, so confused

    • @aneessheikh4120
      @aneessheikh4120 2 місяці тому

      ​@@professorcat431 no they don't ask for certificate untill you have a valid experience certificate of working in previous organisation. your experience certificate is enough

  • @ahamaddevops2094
    @ahamaddevops2094 2 роки тому

    is she selected or not ...??

  • @erdivaysinghal3893
    @erdivaysinghal3893 2 роки тому

    She missed the important point in the playbook i.e. ---

    • @LogicOpsLab
      @LogicOpsLab  2 роки тому

      More of a pseudo code. But, please do write your answers, as well. This will help improve us and for the community.

    • @Amol1501
      @Amol1501 2 роки тому +1

      But that is not mandatory, even if you don’t write - - - playbook will run. Isn’t it?

    • @ajaya652
      @ajaya652 Рік тому

      Yes

    • @amitapatra1183
      @amitapatra1183 Рік тому

      ​@@LogicOpsLab😂g

  • @rehantayyab82
    @rehantayyab82 8 місяців тому

    Is it real , it looks planted , i mean already planned in a way for UA-cam recording ?

    • @LogicOpsLab
      @LogicOpsLab  8 місяців тому

      Thanks for the feedback, Rehan.

  • @RahulYadav-qs4bu
    @RahulYadav-qs4bu Рік тому

    Didn't she answered the very first question wrong ? She mixed the definition of configuration management with what actually chef, ansible does

    • @LogicOpsLab
      @LogicOpsLab  Рік тому

      Please comment down the correct answer as feedback. This will help other folks, as well.

  • @sksafikuddinkhan5935
    @sksafikuddinkhan5935 7 місяців тому

    The playbook is not correct

    • @LogicOpsLab
      @LogicOpsLab  7 місяців тому

      It's pseudo code. You don't have to write 100 percent correct code in the interview.