mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user