Update node_object_creation_snmp.yml
- name: Create node object from mapping file created by snmp utility
ansible.builtin.shell: >
- mkdef -t node "{{ utility_mapping_file_output.list[idx2].Hostname.split('.')[0] }}" groups={{ provision_os }},all
+ mkdef -t node "{{ utility_mapping_file_output.list[idx2].Hostname.split('.')[0] }}" groups={{ snmp_node_group }},all
ip="{{ utility_mapping_file_output.list[idx2].IP | trim }}" mac="{{ utility_mapping_file_output.list[idx2].MAC | trim }}"
hostnames="{{ utility_mapping_file_output.list[idx2].Hostname | trim }}" netboot=xnba arch=x86_64 -f
with_items: "{{ utility_mapping_file_output.list }}"
