diff options
author | John R Barker <john@johnrbarker.com> | 2017-01-09 17:21:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-09 17:21:04 +0000 |
commit | fb3bef7f46be78d4ff99466085ebcaac9120df48 (patch) | |
tree | da4740fd4c20f1a1a641f6634f4c5f2b120b5ca5 /test/integration/targets/vyos_config | |
parent | a2b4ad9da0b64d61cb21b3b33a3b37ee1e87ef83 (diff) | |
download | ansible-fb3bef7f46be78d4ff99466085ebcaac9120df48.tar.gz |
Use inventory_hostname_short (#20054)
When using AWS we have to use the full domain name in the inventory file, which
we rather than the short name. This change avoids that ending up being
set in the tests.
Diffstat (limited to 'test/integration/targets/vyos_config')
-rw-r--r-- | test/integration/targets/vyos_config/tests/cli/comment.yaml | 4 | ||||
-rw-r--r-- | test/integration/targets/vyos_config/tests/cli/simple.yaml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/targets/vyos_config/tests/cli/comment.yaml b/test/integration/targets/vyos_config/tests/cli/comment.yaml index 91cc729770..56746aab83 100644 --- a/test/integration/targets/vyos_config/tests/cli/comment.yaml +++ b/test/integration/targets/vyos_config/tests/cli/comment.yaml @@ -3,7 +3,7 @@ - name: setup vyos_config: - lines: set system host-name {{ inventory_hostname }} + lines: set system host-name {{ inventory_hostname_short }} provider: "{{ cli }}" match: none @@ -31,7 +31,7 @@ - name: teardown vyos_config: - lines: set system host-name {{ inventory_hostname }} + lines: set system host-name {{ inventory_hostname_short }} provider: "{{ cli }}" match: none diff --git a/test/integration/targets/vyos_config/tests/cli/simple.yaml b/test/integration/targets/vyos_config/tests/cli/simple.yaml index 957b91224d..70aea105f0 100644 --- a/test/integration/targets/vyos_config/tests/cli/simple.yaml +++ b/test/integration/targets/vyos_config/tests/cli/simple.yaml @@ -3,7 +3,7 @@ - name: setup vyos_config: - lines: set system host-name {{ inventory_hostname }} + lines: set system host-name {{ inventory_hostname_short }} provider: "{{ cli }}" match: none @@ -30,7 +30,7 @@ - name: teardown vyos_config: - lines: set system host-name {{ inventory_hostname }} + lines: set system host-name {{ inventory_hostname_short }} provider: "{{ cli }}" match: none |