Update validate_cp_nic.yml
- name: Validation related to IB nic
ansible.builtin.include_tasks: validate_ib_nic.yml
- when: ib_nic_subnet | length > 1
+ when:
+ - ib_nic_subnet | length > 1
+ - discovery_mechanism == discovery_method_snmp or
+ discovery_mechanism == discovery_method_mapping
+
