Debian Codegraph @

ansible_collections/cisco/nxos/tests/integration/targets/nxos_smoke/tasks/main.yaml

raw symbols SCIP
1 ---
2 # Some of the tests in this suite change the hostname to switch.
3 # This block/always ensures the hostname gets changed back to
4 # the correct name.
5 - name: Run the CLI and NX-API tests
6 block:
7 - name: Include the CLI tasks
8 ansible.builtin.include_tasks: cli.yaml
9 tags:
10 - "cli"
11 - name: Include the NX-API tasks
12 ansible.builtin.include_tasks: nxapi.yaml
13 tags:
14 - "nxapi"
15
16 always:
17 - name: "Change hostname back to {{ inventory_hostname_short }}"
18 cisco.nxos.nxos_config:
19 lines:
20 - "hostname {{ inventory_hostname_short }}"
21 match: none