Use 'hostname switch' on setup/teardown tasks for nxos_config non_idempotent (#29132)

inventory_hostname breaks CI due to too long string.
(cherry picked from commit 497e6cf405)
pull/30252/head
Ricardo Carrillo Cruz 8 years ago committed by Toshio Kuratomi
parent 3483040a17
commit 2f3c1867f7

@ -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

Loading…
Cancel
Save