Ansible Automation | Performing User Management using Ansible

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 108

  • @VK-xw8ij
    @VK-xw8ij 5 ปีที่แล้ว +1

    Hi Yogesh,
    This is excellent for freshers because everything you share with us is simple and knowledgeable.

    • @YogeshMehta
      @YogeshMehta  4 ปีที่แล้ว

      Thanks for the feedback

  • @vivahernando1
    @vivahernando1 7 ปีที่แล้ว +2

    Can you add the playbook to the description area of the video or make it downloadable via Dropbox etc.

  • @namishgarg7312
    @namishgarg7312 2 ปีที่แล้ว

    Hi Yogesh,
    All your videos are really nice and way to understand. Thanks for such knowledge sharing sessions.
    I just want to understand how we can encrypt and use the password which is to be added on multiple users with same playbook.

  • @Gulmohar32
    @Gulmohar32 7 ปีที่แล้ว +2

    thanks Yogesh for this good video

  • @sailwithsailesh
    @sailwithsailesh 5 ปีที่แล้ว +1

    Hi yogesh ,
    Your videos on Ansible are very detailed and simple. Thank you so much for taking the time in making the videos. If there is a git repository where I can download the consolidated list of play books u created, it would be of great help to work with them and practice ansible. Thank you so much in advance.

    • @YogeshMehta
      @YogeshMehta  5 ปีที่แล้ว

      Apologies Saileah. I don’t have git repo.

  • @tabbytabrez6767
    @tabbytabrez6767 4 ปีที่แล้ว +1

    Nice tutorial..... Let's suppose i have a list of users in excel file and i need to add those users ..... how to call/link that excel into the playbook .... i know we can create a yml file and copy all users there and we can add that file into playbook, however i have an excel file .... how would u do it..

    • @YogeshMehta
      @YogeshMehta  3 ปีที่แล้ว

      Sorry for a very late reply. You can use this community module to read xls file. Then regular user module can handle user creation.
      docs.ansible.com/ansible/latest/collections/community/general/read_csv_module.html

  • @tsrinath
    @tsrinath 7 ปีที่แล้ว +1

    Hi Yogesh,,, Very good one ..

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      thanks for feedback. cheers

    • @vasudevn4986
      @vasudevn4986 7 ปีที่แล้ว

      Hi Yogesh,
      Excellent job you have been doing for us. Thanks a lot and it's really helpful. Please share the playbook. Also please post some videos for creating VPC in AWS.

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      thanks for feedback :)

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      thanks for feedback ,will post videos on VPC soon :)

  • @alka7783
    @alka7783 3 ปีที่แล้ว

    Awesome tutorial, thank you

  • @abhi66657
    @abhi66657 6 ปีที่แล้ว

    Good one Yogesh

  • @sunglimp
    @sunglimp 4 ปีที่แล้ว

    Hi, Can you please help me
    I am getting below error : or how to solve
    ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
    JSON: No JSON object could be decoded
    Syntax Error while loading YAML.
    did not find expected key
    The error appears to be in '/etc/ansible/user3.yml': line 33, column 4, but may
    be elsewhere in the file depending on the exact syntax problem.
    The offending line appears to be:
    # this task generate public keys for user
    - name: generate ssh keys for a user
    ^ here

  • @CloudTechnocrats
    @CloudTechnocrats 7 ปีที่แล้ว +1

    Hell Mr. Yogesh,
    It's very nice demo for User Managment. I would appriciate if could share playbook for the same. Thanks.

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว +2

      Hello Mr. Vilas, Personally I will prefer like write playbook yourself with reference to the demo I gave in the video. It will help you to understand the YAML formatting..

  • @billt6597
    @billt6597 7 ปีที่แล้ว

    Great video Yogesh! Can I get a copy of that playbook, please?

  • @HarkishanVagadiya
    @HarkishanVagadiya 5 ปีที่แล้ว +1

    Hi Yogesh, could you please share this playbook to me, thanks for making awesome video on playbook

    • @YogeshMehta
      @YogeshMehta  5 ปีที่แล้ว +1

      Hello, I am unable to find this playbook. I suggest you writing this at your own after understanding. This will help you to learn syntax and indentation.
      Please let me know how you go with this.
      Thanks

  • @sibanandanayak2633
    @sibanandanayak2633 7 ปีที่แล้ว +1

    Good stuff.. Thanks alot.

  • @shatrujeetkumar9210
    @shatrujeetkumar9210 5 ปีที่แล้ว +1

    Very nice video.
    Can u share me the playbook?

    • @YogeshMehta
      @YogeshMehta  5 ปีที่แล้ว +1

      Hi Shatrujeet, I don’t think I have playbook now. You May write your playbook after watching the video. Writing it yourself will be great fun. Cheers

  • @sankarinkollu4432
    @sankarinkollu4432 7 ปีที่แล้ว

    Hi Yogesh, i did same as above copied the keys in all the machines, but when try to create user in remote machine, i used become, its giving error "Shared connection to node1 closed.
    ", "module_stdout": "sudo: a password is required
    " " please help me with this
    - hosts: client1
    remote_user: ansible
    become: yes
    become_method: sudo
    gather_facts: no
    vars:
    passwd: "{{'password' | password_hash('sha512') }}"
    tasks:
    - name: creating user
    user: name=username password={{ passwd }} state=present

  • @santoshsontakke7507
    @santoshsontakke7507 4 ปีที่แล้ว

    Hi how I can set password without using variables and openssl method .. i want to give direct password to user in task while creating user... it is possible?

  • @swapnilshingote8773
    @swapnilshingote8773 4 ปีที่แล้ว +1

    It took me 2 mins to learn that you are saying secondary group...

  • @Greenguymrmacker
    @Greenguymrmacker 4 ปีที่แล้ว

    Hi Mr. Mehta,
    May i ask if you could please send myself on a copy of your playbook please.

  • @redshiftnews5065
    @redshiftnews5065 6 ปีที่แล้ว

    Hi Yogesh thanks for this video can you plz share the playbook

  • @AshokReddy-er5gl
    @AshokReddy-er5gl 6 ปีที่แล้ว

    Hi Yogesh,
    Can please share the playbook ....
    Thanx in Advance .

  • @YaathumOoreGo
    @YaathumOoreGo 6 ปีที่แล้ว

    Show how to do normal passowrd reset for any user on any server using ansible.

  • @chilaraytimes
    @chilaraytimes 6 ปีที่แล้ว +1

    Hi sir, wat is the use of become_user. If I don't write this what will be the result?

    • @YogeshMehta
      @YogeshMehta  6 ปีที่แล้ว +1

      Hello Dhruv, if you don’t specify become_user, the ansible commands or playbook will not run with sudo rights.

    • @chilaraytimes
      @chilaraytimes 6 ปีที่แล้ว +1

      @@YogeshMehta thanks

  • @atanudebnath9173
    @atanudebnath9173 7 ปีที่แล้ว +1

    Hi Yogesh,
    Could you please advise how to do privileged access to any user using ansible.
    A brief explanation and also whether should it requires any parameter changes in ansible.cfg file.
    I have written a playbook , kindly advise for it.
    ---
    - hosts: 192.168.0.55
    remote_user: Atanu
    become: true
    become_method: su
    tasks:
    - name: start the nfs service
    service:
    name: nfs
    enabled: yes
    state: started

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      +Atanu Debnath become_method should be sudo and on your tater hosts add sudo rule for your user to get equivalent of root or command you want to execute

  • @chandansinghrathore3032
    @chandansinghrathore3032 5 ปีที่แล้ว +1

    I need this playbook sir. Can you please share the playbook with me.
    Thank you.

    • @YogeshMehta
      @YogeshMehta  4 ปีที่แล้ว

      Thanks Chandan, unfortunately I don’t have Git repo. I would write it at my own to get understanding on the YAML formatting and get more familiarity with ansible.

  • @sudhirnikhade6001
    @sudhirnikhade6001 7 ปีที่แล้ว +1

    Hello sir, in the add_several_users tag, what is the use of that password you have given?
    Thank you in advance. All videos are superb sir.

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      +Sudhir Nikhade password is encrypted password and I generated before.

  • @raisal1992
    @raisal1992 7 ปีที่แล้ว +1

    Hai great. Please share the playbook

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      thanks for the feedback..please share your email id..

  • @tuomasiboke4336
    @tuomasiboke4336 6 ปีที่แล้ว +1

    could you possibly save typing by pasting file?

    • @YogeshMehta
      @YogeshMehta  6 ปีที่แล้ว

      Yes sure. Will follow in future videos

  • @sushmitasuren4320
    @sushmitasuren4320 7 ปีที่แล้ว +1

    This is for Linux to Linux machine or this playbook wil work for linux to Windows too?

    • @YogeshMehta
      @YogeshMehta  7 ปีที่แล้ว

      +sushmita suren for linux targets. If you want to create windows users , use win_user module. More info. docs.ansible.com/ansible/latest/win_user_module.html

  • @govind4005
    @govind4005 6 ปีที่แล้ว

    Can you share the playbook

  • @MrDjegsi
    @MrDjegsi 4 ปีที่แล้ว

    Hi Yogesh, nice tutorial, but let's say that l don't want to use a variable, l just wanna use password: 123456? The reason is that l wanna create users with a password and give this username and password to the client

  • @pranavmr1040
    @pranavmr1040 5 ปีที่แล้ว

    share me the playbook plz

  • @Oswee
    @Oswee 5 ปีที่แล้ว +1

    Why everybody there in comments are asking for a playbook? Are those people so lazy just simply to write own pb?

  • @thejjboyz7827
    @thejjboyz7827 7 ปีที่แล้ว

    Please can I have your email?