mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -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
|
@ -14,7 +14,7 @@
|
|||
- name: collect any backup files
|
||||
find:
|
||||
paths: "{{ role_path }}/backup"
|
||||
pattern: "{{ inventory_hostname }}_config*"
|
||||
pattern: "{{ inventory_hostname_short }}_config*"
|
||||
register: backup_files
|
||||
delegate_to: localhost
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
|||
- name: collect any backup files
|
||||
find:
|
||||
paths: "{{ role_path }}/backup"
|
||||
pattern: "{{ inventory_hostname }}_config*"
|
||||
pattern: "{{ inventory_hostname_short }}_config*"
|
||||
register: backup_files
|
||||
delegate_to: localhost
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
- name: setup
|
||||
ios_config:
|
||||
lines: ['hostname {{ inventory_hostname }}']
|
||||
lines: ['hostname {{ inventory_hostname_short }}']
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
- name: teardown
|
||||
ios_config:
|
||||
lines: ['hostname {{ inventory_hostname }}']
|
||||
lines: ['hostname {{ inventory_hostname_short }}']
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname }}"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- "no snmp-server contact"
|
||||
- "hostname {{ inventory_hostname }}"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- "snmp-server contact ansible"
|
||||
- "hostname {{ inventory_hostname }}"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
|||
ios_config:
|
||||
lines:
|
||||
- "no snmp-server contact"
|
||||
- "hostname {{ inventory_hostname }}"
|
||||
- "hostname {{ inventory_hostname_short }}"
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
- name: setup
|
||||
ios_config:
|
||||
lines: ['hostname {{ inventory_hostname }}']
|
||||
lines: ['hostname {{ inventory_hostname_short }}']
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
- name: teardown
|
||||
ios_config:
|
||||
lines: ['hostname {{ inventory_hostname }}']
|
||||
lines: ['hostname {{ inventory_hostname_short }}']
|
||||
provider: "{{ cli }}"
|
||||
match: none
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue