2017-06-29 20:55:08 +02:00
|
|
|
# NXAPI is enabled differently on NX-OS platforms.
|
|
|
|
# Try both commands to enable NXAPI and ignore any errors.
|
2016-10-28 20:50:29 +02:00
|
|
|
- name: enable nxapi on remote device
|
2017-06-29 20:55:08 +02:00
|
|
|
nxos_config:
|
|
|
|
lines:
|
|
|
|
- feature cli
|
|
|
|
- feature cli sandbox
|
2016-10-28 20:50:29 +02:00
|
|
|
provider: "{{ cli }}"
|
2017-06-29 20:55:08 +02:00
|
|
|
ignore_errors: yes
|