mirror of https://github.com/ansible/ansible.git
nxos fix cherry-pick (#36340)
* Fix nxos_system tests (#36201) * Fix nxos_system tests * Add debug connection plugin info * Move sanity test under common (cherry picked from commitpull/36342/head5b5d24631a
) * Fixes for the N3500 platform that uses the A8 image (#36261) * fix nxos_l3_interface tests as n35 doesn't support ipv6 * add terminal dont-ask to nxos_feature and nxos_lldp * put interfaces in L2 mode for N35 * fix nxos_feature unit-tests (cherry picked from commite24c547a3a
)
parent
d568701254
commit
b08bdc5f6d
@ -0,0 +1,36 @@
|
||||
---
|
||||
- debug: msg="START connection={{ ansible_connection }}/sanity.yaml"
|
||||
- debug: msg="Using provider={{ connection.transport }}"
|
||||
when: ansible_connection == "local"
|
||||
|
||||
- block:
|
||||
- name: configure hostname and domain-name
|
||||
nxos_system: &hostname
|
||||
hostname: "{{ inventory_hostname_short }}"
|
||||
domain_name: test.example.com
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: remove configuration
|
||||
nxos_system:
|
||||
state: absent
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: configure name servers
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: configure name servers with VRF support
|
||||
nxos_system:
|
||||
name_servers:
|
||||
- { server: 8.8.8.8, vrf: management }
|
||||
- { server: 8.8.4.4, vrf: management }
|
||||
provider: "{{ connection }}"
|
||||
|
||||
always:
|
||||
- name: Re-configure hostname
|
||||
nxos_system: *hostname
|
||||
|
||||
- debug: msg="END connection={{ ansible_connection }}/sanity.yaml"
|
Loading…
Reference in New Issue