mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 12:03:58 -07: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:
parent
a2b4ad9da0
commit
fb3bef7f46
62 changed files with 123 additions and 123 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue