mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
850 B
YAML
43 lines
850 B
YAML
8 years ago
|
---
|
||
7 years ago
|
- debug: msg="START {{ connection.transport }}/defaults.yaml"
|
||
8 years ago
|
|
||
|
- name: setup
|
||
|
nxos_config:
|
||
|
commands:
|
||
|
- no description
|
||
|
- shutdown
|
||
|
parents:
|
||
|
- interface Ethernet2/5
|
||
|
match: none
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
|
- name: configure device with defaults included
|
||
|
nxos_config:
|
||
|
src: defaults/config.j2
|
||
|
defaults: yes
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- debug: var=result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == true"
|
||
8 years ago
|
- "result.updates is defined"
|
||
8 years ago
|
|
||
|
- name: check device with defaults included
|
||
|
nxos_config:
|
||
|
src: defaults/config.j2
|
||
|
defaults: yes
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- debug: var=result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == false"
|
||
|
- "result.updates is not defined"
|
||
|
|
||
7 years ago
|
- debug: msg="END {{ connection.transport }}/defaults.yaml"
|