Giter VIP home page Giter VIP logo

Comments (5)

xander-sh avatar xander-sh commented on June 1, 2024

@StratosSamouilidis
in network section
name - it's portgroup name on vCenter, not {{ name_of_adapter }}
This playbook work fine:

    - name: Add network
      community.vmware.vmware_guest_network:
        hostname: "{{ vc_server }}"
        username: "{{ domainadminUser }}"
        password: "{{ domainadminPassword }}"
        cluster: "{{ vc_cluster }}"
        datacenter: "{{ vc_datacenter }}"
        validate_certs: no
        name: test_vm
        gather_network_info: false
        networks:
          - dvswitch_name: "{{ vc_vm_dwsName }}"
            name: "{{ vc_vm_portGroupName }}"
            device_type: vmxnet3
            connected: true
            start_connected: true
            state: new

from community.vmware.

ansibullbot avatar ansibullbot commented on June 1, 2024

@StratosSamouilidis: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information.

Here are the items we could not find in your description:

  • component name

Please set the description of this issue with this template:
https://raw.githubusercontent.com/ansible/ansible/devel/.github/ISSUE_TEMPLATE/bug_report.md

click here for bot help

from community.vmware.

camrossi avatar camrossi commented on June 1, 2024

I am having the identical issue:

If I run this play:

- name: add a nic 
  community.vmware.vmware_guest_network:
    hostname: '{{ inventory_hostname }}'
    username: "{{ user }}"
    password: "{{ pass }}"
    datacenter: "{{ datacenter }}"
    validate_certs: no
    connected: yes
    name: AlpineTest
    switch: ACI
    network_name: Webinar|StretchApp1|EPG1
    state: present`

The result is that I end up with a new port-group created nowhere really

image

As you can see in the picture the is now a PG Webinar|StretchApp1|EPG1 at the datacenter level not connected to any switch. It will be delete when I delete the VM or the NIC.

I would want the VM to be placed in the ACI dVS port group called Webinar|StretchApp1|EPG1
I am running: ansible 2.9.13 and the latest community.vmware ansible galaxy v1.2.0

from community.vmware.

sky-joker avatar sky-joker commented on June 1, 2024

resolved_by_pr #401

from community.vmware.

Akasurde avatar Akasurde commented on June 1, 2024

@StratosSamouilidis @camrossi Could you please verify if PR #401 fixes the issue for you? Thanks,

from community.vmware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.