-
Notifications
You must be signed in to change notification settings - Fork 43
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
UCS_VLAN_Group module not found, Unable to create vlan group, add vlan to vlan group using ansible #129
Comments
ucs_vlan_to_group requires the vlan group already exist in UCSM, so a recommended alternative is ucs_managed_objects: Also note that active development for Ansible modules has moved to the Ansible collection maintained at https://galaxy.ansible.com/cisco/ucs. More information on collections can be found at https://docs.ansible.com/ansible/latest/user_guide/collections_using.html and Ansible 2.10 and later moves all Cisco modules into collecitons. |
Hello dsoper2, Thanks a lot for your inputs! I tried to create a playbook with the same code you had given me above
But I am getting an malformed error while executing the playbook as below [root@ansible-test ~]# ansible-playbook ucs_vlangroup_latest.yaml -vvv The error appears to be in '/root/ucs_vlangroup_latest.yaml': line 3, column 3, but may The offending line appears to be:
Require your kind help, also if you have a working sample playbook for creating vlan group and adding vlan to vlan group, Kindly share the same. Regards |
There are syntax errors in the yaml file. Github is changing formatting so you will want to ensure the following passes syntax checks with yamllint.
|
Hello dsoper2, Thanks a lot for that! the code worked fine and i am able to create vlan group and add vlans to vlan group. Regards |
Hello All,
I am currently planning to automate my UCS infrastructure using ansible but I am stuck at the process of creating UCS_Vlan_Group and adding the already created vlan to the vlan group.
The specific module for vlan group seems to be not available and even when i check "ansible-doc ucs_vlan_group" its throwing an error module not found as below
[root@ansible-test ~]# ansible-doc ucs_vlan_group
[WARNING]: module ucs_vlan_group not found in: /root/.ansible/plugins/modules:/
usr/share/ansible/plugins/modules:/usr/lib/python2.7/site-
packages/ansible/modules.
I have also git cloned an Cisco UCS repository which said it had ucs_vlan_group module under it but still no luck, This is become a show stopper as this is a crucial step in automating my infrastructure.
Any help would be highly appreciated.
Ansible version and other details below
[root@ansible-test ~]# ansible --version
ansible 2.9.5
config file = /root/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Jun 11 2019, 14:33:56) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
Thanks and Regards
Vivekanand
The text was updated successfully, but these errors were encountered: