You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/nxos_config/tasks/main.yaml

16 lines
479 B
YAML

---
# Some of the tests in this suite change the hostname to switch.
# This block/always ensures the hostname gets changed back to
# the correct name.
- block:
- { include: cli.yaml, tags: ['cli'] }
- { include: nxapi.yaml, tags: ['nxapi'] }
- { include: cli_config.yaml, tags: ['cli_config'] }
always:
- name: "Change hostname back to {{ inventory_hostname_short }}"
nxos_config:
lines:
- "hostname {{ inventory_hostname_short }}"
match: none