diff options
author | Ricardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com> | 2017-09-08 13:56:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-08 13:56:09 +0200 |
commit | 497e6cf405d921f8b18dc01796d48a5fc77261e1 (patch) | |
tree | a178673ca511b93f8cce0a9a8688bfe918fe5b24 | |
parent | 8b6e3272f25765d9450d4cfa5f92e082685fb6e1 (diff) | |
download | ansible-497e6cf405d921f8b18dc01796d48a5fc77261e1.tar.gz |
Use 'hostname switch' on setup/teardown tasks for nxos_config non_idempotent (#29132)
inventory_hostname breaks CI due to too long string.
-rw-r--r-- | test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml b/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml index e950a97430..3bd8a4172b 100644 --- a/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml +++ b/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml @@ -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 |