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.
This commit is contained in:
John R Barker 2017-01-09 17:21:04 +00:00 committed by GitHub
commit fb3bef7f46
62 changed files with 123 additions and 123 deletions

View file

@ -35,7 +35,7 @@
- name: Ensure we can communicate over 8080
junos_config:
lines:
- set system host-name {{ inventory_hostname }}
- set system host-name {{ inventory_hostname_short }}
provider: "{{ netconf }}"
port: 8080
@ -43,7 +43,7 @@
- name: Ensure we can NOT communicate over default port
junos_config:
lines:
- set system host-name {{ inventory_hostname }}
- set system host-name {{ inventory_hostname_short }}
provider: "{{ netconf }}"
register: result
ignore_errors: true
@ -62,7 +62,7 @@
- name: Ensure we can communicate over netconf
junos_config:
lines:
- set system host-name {{ inventory_hostname }}
- set system host-name {{ inventory_hostname_short }}
provider: "{{ netconf }}"
- debug: msg="END netconf/changeport.yaml"

View file

@ -23,7 +23,7 @@
- name: Ensure we can communicate over netconf
junos_config:
lines:
- set system host-name {{ inventory_hostname }}
- set system host-name {{ inventory_hostname_short }}
provider: "{{ netconf }}"
# Disable netconf
@ -52,7 +52,7 @@
- name: Ensure we can NOT talk via netconf
junos_config:
lines:
- set system host-name {{ inventory_hostname }}
- set system host-name {{ inventory_hostname_short }}
provider: "{{ netconf }}"
register: result
ignore_errors: true