Create a VMware vSphere Virtual Machine - Ansible module vmware_guest

Поделиться
HTML-код
  • Опубликовано: 17 май 2022
  • How to automate the creation of a virtual machine guest with 1 CPU, 1 GB RAM, and 10 GB thin-provisioned storage using Ansible Playbook and the vmware_guest module.
    www.ansiblepilot.com/articles...
    FREE Top 10 Best Practices of Ansible Automation: save time, reduce errors and stress - dashboard.mailerlite.com/form...
    BUY the Complete PDF BOOK to easily Copy and Paste the 200+ Ansible code
    200+ Automation Examples For Linux and Windows System Administrator and DevOps
    leanpub.com/ansiblebyexamples
    my VIDEO COURSE: Ansible by Examples
    200+ Automation Examples For Linux and Windows System Administrator and DevOps
    www.udemy.com/course/ansible-...
  • НаукаНаука

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

  • @ViktorZavadskyi
    @ViktorZavadskyi 2 месяца назад

    By default ansilbe trying to connect via ssh with this credentials. To make it connect via https-api you need to add this lines to inventory file:
    [all:vars]
    ansible_connection=local
    [servers]
    localhost

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

    Nice explanation, however it's better if you could show us the datacenter, ESXI, Network etc details from Vcenter - how it's shown there... thanks..

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

      Great suggestion! I prefer to focus more on the Ansible side

  • @ViktorZavadskyi
    @ViktorZavadskyi 2 месяца назад

    Best play on 1.5 speed =)

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

    Sir, In Vcenter for a VM how to edit settings using ansible??

  • @honeymotiyani2854
    @honeymotiyani2854 21 день назад

    How did you create ansible controller?

  • @elabeddhahbi3301
    @elabeddhahbi3301 2 года назад +2

    i'm sorry to ask such a basic question but i'm still confused from the first video if inventory is pointing to localhost as hosts directive in the main yaml file did you ssh to the vcenter host and execute the playbook over there or the playbook is executed in the localhost and pointing to the esxi with hostname directive i still can't get my head around it

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

      Hello, I understand, a lot of new concepts. In this example the ansible playbook execute against "localhost" and connect to VMware infrastructure/ESXi/vCenter via the `vcenter_hostname: "vmware.example.com"` variable. Have fun with Ansible ;-)

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

    how the ansible will find the ISO images? is that defined some where, that ansible will ISO from that particular directory?

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

      Have you already tried the find module? This is one example www.ansiblepilot.com/articles/find-all-files-with-extension-ansible-module-find/

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

    why the inventory is "localhost" ? and I get an error msg "failed to connect to the host via ssh, permission denied"

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

      Inventory is localhost because I would like to execute the Ansible code on my local machine. Please specify the "ansible_connection: local" parameter

    • @user-kf4uq1jt9e
      @user-kf4uq1jt9e 8 месяцев назад

      @@BertonLuca now am I'm getting
      [WARNING]: Skipping 'ansible_connection' as this is not a valid group definition
      [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
      [WARNING]: Collection community.vmware does not support Ansible version 2.10.8

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

    Hi I am trying to create vm in VMware using ansible but I am getting module failure error

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

      What's the exact error? You might find the solution in my Ansible troubleshooting video series