Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Ansible Version and collection version
ansible [core 2.12.3]
DCNM version
12.1.2e
Affected module(s)
dcnm_policy
Ansible Playbook
---
- name: Create a Policy in the Nexus Dashboard Fabric Controller
hosts: ndfc
gather_facts: no
tasks:
- name: Create policy including required variables
cisco.dcnm.dcnm_policy:
fabric: SIMPL-BROWNFIELD
config:
- name: switch_freeform # This must be a valid template name
description: TESTING_ANSIBLE
policy_vars:
CONF: "ip domain-name at"
- switch:
- ip: 1.2.3.4
name: switch_freeform
description: TESTING_ANSIBLE
policy_vars:
CONF: "ip domain-name at"
Community Note
Ansible Version and collection version
ansible [core 2.12.3]
DCNM version
12.1.2e
Affected module(s)
Ansible Playbook
Debug Output
Note that the policy ID received after creating the policy is the different from the one used to deploy the policy
Expected Behavior
Freeform policy is configured on the NDFC and deployed on the switch
Actual Behavior
Freeform policy is configured on the NDFC but a wrong Policy ID is deployed. Policy in the playbook is not deployed
Steps to Reproduce
Execute the Ansible Playbook