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:
Ricardo Carrillo Cruz 2017-09-08 13:56:09 +02:00 committed by GitHub
parent 8b6e3272f2
commit 497e6cf405

View file

@ -3,7 +3,7 @@
- name: setup
nxos_config:
lines: hostname {{ inventory_hostname_short }}
lines: hostname switch
provider: "{{ connection }}"
match: none
@ -32,7 +32,7 @@
- name: teardown
nxos_config:
lines: hostname {{ inventory_hostname_short }}
lines: hostname switch
provider: "{{ connection }}"
match: none