Use 'hostname switch' on setup/teardown tasks for nxos_config non_idempotent (#29132)
inventory_hostname breaks CI due to too long string.
This commit is contained in:
parent
8b6e3272f2
commit
497e6cf405
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
- name: setup
|
- name: setup
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines: hostname {{ inventory_hostname_short }}
|
lines: hostname switch
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
- name: teardown
|
- name: teardown
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines: hostname {{ inventory_hostname_short }}
|
lines: hostname switch
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
match: none
|
match: none
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue