You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see any module method to create the vlan group but found that the cisco.ucs.ucs_vlan_to_group does create the group and adds the vlan to it but reports the task as failed.
I don't see any module method to create the vlan group but found that the cisco.ucs.ucs_vlan_to_group does create the group and adds the vlan to it but reports the task as failed.
EG:
cisco.ucs.ucs_vlan_to_group:
hostname: "{{ inventory_hostname }}"
username: "{{ ucs_user }}"
password: "{{ ucs_pass }}"
vlangroup: "{{ prefix }}_A"
vlanname: "{{prefix}}_VL{{ vlan }}"
state: present
delegate_to: localhost
ignore_errors: yes
loop: "{{ range(start|int, end|int+1, 1)|list }}"
loop_control:
loop_var: vlan
reports failed for the first vlan
and modified for subsequent vlans
TASK [Configure VLAN groups A] ********************************************************************************************************************************************************************
failed: [UCS-01 -> localhost] (item=3125) => {"ansible_loop_var": "vlan", "changed": true, "msg": "PRODVMS_A VLAN Group not configured in UCS", "vlan": 3125}
failed: [UCS-02 -> localhost] (item=3125) => {"ansible_loop_var": "vlan", "changed": true, "msg": "PRODVMS_A VLAN Group not configured in UCS", "vlan": 3125}
changed: [UCS-01 -> localhost] => (item=3126)
changed: [UCS-02 -> localhost] => (item=3126)
changed: [UCS-01 -> localhost] => (item=3127)
changed: [UCS-02 -> localhost] => (item=3127)
changed: [UCS-01 -> localhost] => (item=3128)
changed: [UCS-02 -> localhost] => (item=3128)
changed: [UCS-01 -> localhost] => (item=3129)
changed: [UCS-02 -> localhost] => (item=3129)
changed: [UCS-01 -> localhost] => (item=3130)
changed: [UCS-01 -> localhost] => (item=3131)
changed: [UCS-02 -> localhost] => (item=3130)
changed: [UCS-01 -> localhost] => (item=3132)
changed: [UCS-02 -> localhost] => (item=3131)
changed: [UCS-01 -> localhost] => (item=3133)
changed: [UCS-02 -> localhost] => (item=3132)
changed: [UCS-01 -> localhost] => (item=3134)
changed: [UCS-02 -> localhost] => (item=3133)
changed: [UCS-01 -> localhost] => (item=3135)
changed: [UCS-01 -> localhost] => (item=3136)
...ignoring
changed: [UCS-02 -> localhost] => (item=3134)
changed: [UCS-02 -> localhost] => (item=3135)
changed: [UCS-02 -> localhost] => (item=3136)
...ignoring
I'd love to remove the ignore_errors: yes
It seems we are missing task to create / remove VLAN Groups
The text was updated successfully, but these errors were encountered: