---
- name: Setup - Enable feature netconf
  cisco.nxos.nxos_feature:
    feature: netconf
    state: enabled
  vars:
    ansible_connection: ansible.netcommon.network_cli
    ansible_ssh_port: 22
  register: result
  ignore_errors: true

- name: Show failure message
  ansible.builtin.debug:
    msg: "Netconf feature is not supported on this platform!"
  when: result.failed
