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

cloud.vmware_ops.info make sure directory exists requires community.general #88

Closed
IPvSean opened this issue Aug 14, 2024 · 2 comments
Closed

Comments

@IPvSean
Copy link

IPvSean commented Aug 14, 2024

This is the error->

➜  vmware-demos git:(main) ansible-navigator run vmware_visbility.yml --mode stdout
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [VMware visbility] *******************************************************************************************************************************************************

TASK [Set VCenter parameters] *************************************************************************************************************************************************
ok: [localhost]

TASK [cloud.vmware_ops.info : License info] ***********************************************************************************************************************************
included: /usr/share/ansible/collections/ansible_collections/cloud/vmware_ops/roles/info/tasks/license_info.yml for localhost

TASK [cloud.vmware_ops.info : Fetch the license information] ******************************************************************************************************************
ok: [localhost]

TASK [cloud.vmware_ops.info : Make sure directory exists] *********************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '/tmp/license-{{ lookup('community.general.random_string', special=false) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: lookup plugin (community.general.random_string) not found"}

The playbook is super simple:

---
- name: VMware visbility
  hosts: localhost
  gather_facts: false
  tasks:
    - name: Set VCenter parameters
      ansible.builtin.include_vars: login_info.yml

    - name: Use info role
      ansible.builtin.import_role:
        name: cloud.vmware_ops.info
      vars:
        info_license: true
        info_storage: true
        info_appliance: true
        info_guest: true
        info_hostname: "{{ vcenter_hostname }}"
        info_username: "{{ vcenter_username }}"
        info_password: "{{ vcenter_password }}"
        info_validate_certs: false
IPvSean added a commit to IPvSean/ee-builds that referenced this issue Aug 14, 2024
@IPvSean
Copy link
Author

IPvSean commented Aug 14, 2024

@bardielle
Copy link
Contributor

@IPvSean thanks for your feedback
I opened a PR to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants