Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR! couldn't resolve module/action 'nsxt_fabric_compute_manager'. This often indicates a misspelling, missing collection, or incorrect module path #481

Open
kkrishnasamy01 opened this issue Nov 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@kkrishnasamy01
Copy link

Describe the bug

Unable to add compute manager.

"ERROR! couldn't resolve module/action 'nsxt_fabric_compute_manager'. This often indicates a misspelling, missing collection, or incorrect module path"

Reproduction steps


  • hosts: localhost
    name: Register vCenter as a compute manager in NSX-T
    gather_facts: false
    vars_files: ../answerfile.yml

    tasks:

    • name: Register compute manager
      nsxt_fabric_compute_managers:
      hostname: "{{ nsxt_hostname }}"
      username: "{{ nsxt_admin_user }}"
      password: "{{ nsxt_password }}"
      validate_certs: "{{ nsxt_validate_certs }}"
      display_name: "vCenter"
      server: "{{ vcenter_hostname }}"
      origin_type: "vCenter"
      credential:
      credential_type: "UsernamePasswordLoginCredential"
      username: "{{ vcenter_username }}"
      password: "{{ vcenter_password }}"
      state: "present"

Expected behavior


  • hosts: localhost
    name: Register vCenter as a compute manager in NSX-T
    gather_facts: false
    vars_files: ../answerfile.yml

    tasks:

    • name: Register compute manager
      nsxt_fabric_compute_managers:
      hostname: "{{ nsxt_hostname }}"
      username: "{{ nsxt_admin_user }}"
      password: "{{ nsxt_password }}"
      validate_certs: "{{ nsxt_validate_certs }}"
      display_name: "vCenter"
      server: "{{ vcenter_hostname }}"
      origin_type: "vCenter"
      credential:
      credential_type: "UsernamePasswordLoginCredential"
      username: "{{ vcenter_username }}"
      password: "{{ vcenter_password }}"
      state: "present"

Additional context

No response

@kkrishnasamy01 kkrishnasamy01 added the bug Something isn't working label Nov 7, 2023
@kkrishnasamy01
Copy link
Author

Please help us ...

@alagoutte
Copy link
Contributor

Hi @kkrishnasamy01

Do you have try to add

-hosts: localhost
  collections:
    - vmware.ansible_for_nsxt

@kkrishnasamy01
Copy link
Author

Thanks Alex ...I'm able to add compute manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants