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