Set hostname to 'switch' on nxos_system (#36373)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
pull/36377/head
Trishna Guha 7 years ago committed by GitHub
parent 736d6406c0
commit eb7f4460c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@
- block:
- name: configure hostname and domain-name
nxos_system: &hostname
hostname: "{{ inventory_hostname_short }}"
hostname: switch
domain_name: test.example.com
provider: "{{ connection }}"

@ -6,7 +6,7 @@
- block:
- name: setup
nxos_config:
lines: "hostname {{ inventory_hostname_short }}"
lines: hostname switch
match: none
provider: "{{ connection }}"
@ -33,7 +33,7 @@
always:
- name: teardown
nxos_config:
lines: "hostname {{ inventory_hostname_short }}"
lines: hostname switch
match: none
provider: "{{ connection }}"

Loading…
Cancel
Save