mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Set hostname to 'switch' on nxos_system (#36373)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: configure hostname and domain-name
|
- name: configure hostname and domain-name
|
||||||
nxos_system: &hostname
|
nxos_system: &hostname
|
||||||
hostname: "{{ inventory_hostname_short }}"
|
hostname: switch
|
||||||
domain_name: test.example.com
|
domain_name: test.example.com
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
- block:
|
- block:
|
||||||
- name: setup
|
- name: setup
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines: "hostname {{ inventory_hostname_short }}"
|
lines: hostname switch
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
always:
|
always:
|
||||||
- name: teardown
|
- name: teardown
|
||||||
nxos_config:
|
nxos_config:
|
||||||
lines: "hostname {{ inventory_hostname_short }}"
|
lines: hostname switch
|
||||||
match: none
|
match: none
|
||||||
provider: "{{ connection }}"
|
provider: "{{ connection }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user