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

aviconfig role just skips all the config objects #192

Open
canad1an opened this issue Mar 4, 2024 · 0 comments
Open

aviconfig role just skips all the config objects #192

canad1an opened this issue Mar 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@canad1an
Copy link

canad1an commented Mar 4, 2024

Describe the bug

When using aviconfig role as part of the collection "vmware.alb.aviconfig"
The tasks "Build Avi module includes" always shows skipped, regardless of how you pass the data.

TASK [vmware.alb.aviconfig : Build Avi module includes] *********************************************************
task path: /home/ubuntu/.ansible/collections/ansible_collections/vmware/alb/roles/aviconfig/tasks/main.yml:102
skipping: [localhost] => (item=labelgroup - systemlimits - licenseledgerdetails - useraccountprofile - controllerproperties - cloudproperties - licensestatus - seproperties - tenant - webapput - cloudconnectoruser - hardwaresecuritymodulegroup - alertscriptconfig - customipamdnsprofile - networkprofile - stringgroup - ipaddrgroup - pkiprofile - sslprofile - applicationpersistenceprofile - alertemailconfig - snmptrapprofile - autoscalelaunchconfig - fileobject - securitypolicy - protocolparser - jwtserverprofile - wafapplicationsignatureprovider - errorpagebody - testsedatastorelevel3 - botipreputationtypemapping - botconfigconsolidator - tenantsystemconfiguration - federationcheckpoint - gslbgeodbprofile - albservicesconfig - siteversion - statediffoperation - image - controllerportalregistration - dynamicdnsrecord - role - controllersite - inventoryfaultconfig - albservicesfileupload - webhook - securitymanagerdata - cluster - vsgs - poolgroupdeploymentpolicy - memorybalancerrequest - albservicesjob - backupconfiguration - clusterclouddetails - certificatemanagementprofile - ipamdnsproviderprofile - analyticsprofile - wafpolicypsmgroup - wafprofile - botmapping - natpolicy - applicationprofile - microservicegroup - ipreputationdb - geodb - errorpageprofile - testsedatastorelevel2 - gslb - statediffsnapshot - upgradestatusinfo - upgradestatussummary - authmappingprofile - scheduler - sslkeyandcertificate - networksecuritypolicy - wafpolicy - botdetectionpolicy - testsedatastorelevel1 - backup - cloud - healthmonitor - alertsyslogconfig - vrfcontext - vcenterserver - prioritylabels - nsxtsegmentruntime - gslbservice - actiongroupconfig - availabilityzone - alertconfig - serverautoscalepolicy - network - serviceenginegroup - serviceenginegroup_advanced - pool - trafficcloneprofile - vsvip - serviceengine - networkservice - poolgroup - pingaccessagent - httppolicyset - dnspolicy - vsdatascriptset - l4policyset - icapprofile - authprofile - ssopolicy - systemconfiguration - virtualservice) => {
"ansible_loop_var": "outer_item",
"changed": false,
"false_condition": "avi_role_cfg[outer_item] is defined",
"outer_item": "labelgroup - systemlimits - licenseledgerdetails - useraccountprofile - controllerproperties - cloudproperties - licensestatus - seproperties - tenant - webapput - cloudconnectoruser - hardwaresecuritymodulegroup - alertscriptconfig - customipamdnsprofile - networkprofile - stringgroup - ipaddrgroup - pkiprofile - sslprofile - applicationpersistenceprofile - alertemailconfig - snmptrapprofile - autoscalelaunchconfig - fileobject - securitypolicy - protocolparser - jwtserverprofile - wafapplicationsignatureprovider - errorpagebody - testsedatastorelevel3 - botipreputationtypemapping - botconfigconsolidator - tenantsystemconfiguration - federationcheckpoint - gslbgeodbprofile - albservicesconfig - siteversion - statediffoperation - image - controllerportalregistration - dynamicdnsrecord - role - controllersite - inventoryfaultconfig - albservicesfileupload - webhook - securitymanagerdata - cluster - vsgs - poolgroupdeploymentpolicy - memorybalancerrequest - albservicesjob - backupconfiguration - clusterclouddetails - certificatemanagementprofile - ipamdnsproviderprofile - analyticsprofile - wafpolicypsmgroup - wafprofile - botmapping - natpolicy - applicationprofile - microservicegroup - ipreputationdb - geodb - errorpageprofile - testsedatastorelevel2 - gslb - statediffsnapshot - upgradestatusinfo - upgradestatussummary - authmappingprofile - scheduler - sslkeyandcertificate - networksecuritypolicy - wafpolicy - botdetectionpolicy - testsedatastorelevel1 - backup - cloud - healthmonitor - alertsyslogconfig - vrfcontext - vcenterserver - prioritylabels - nsxtsegmentruntime - gslbservice - actiongroupconfig - availabilityzone - alertconfig - serverautoscalepolicy - network - serviceenginegroup - serviceenginegroup_advanced - pool - trafficcloneprofile - vsvip - serviceengine - networkservice - poolgroup - pingaccessagent - httppolicyset - dnspolicy - vsdatascriptset - l4policyset - icapprofile - authprofile - ssopolicy - systemconfiguration - virtualservice",
"skip_reason": "Conditional result was False"
}
skipping: [localhost] => {
"changed": false,
"msg": "All items skipped"
}

It does however show up in the task "Setting Avi role config to parameter avi_config"
TASK [vmware.alb.aviconfig : Avi Config | Setting Avi role config to parameter avi_config] **********************
task path: /home/ubuntu/.ansible/collections/ansible_collections/vmware/alb/roles/aviconfig/tasks/main.yml:29
ok: [localhost] => {
"ansible_facts": {
"avi_role_cfg": {
"pool": [
{
"health_monitor_refs": [
"/api/healthmonitor?name=System-HTTP"
],
"name": "test"
}
]
}
},
"changed": false
}

Reproduction steps

See above.


  • name: Examples of using Ansible with Avi
    hosts: localhost
    gather_facts: false

    collections:

    • vmware.alb

    tasks:

    • name: Define Virtual Service
      import_role:
      name: vmware.alb.aviconfig
      vars:
      avi_config:
      pool:
      - name: "test"
      health_monitor_refs:
      - '/api/healthmonitor?name=System-HTTP'

Expected behavior

it would create a pool

Additional context

No response

@canad1an canad1an added the bug Something isn't working label Mar 4, 2024
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

1 participant