2016-10-28 20:50:29 +02:00
|
|
|
---
|
2017-12-20 17:26:09 +01:00
|
|
|
- debug: msg="START cli/comment.yaml on connection={{ ansible_connection }}"
|
2016-10-28 20:50:29 +02:00
|
|
|
|
|
|
|
- name: setup
|
|
|
|
iosxr_config:
|
|
|
|
commands:
|
|
|
|
- no description
|
|
|
|
- no shutdown
|
|
|
|
parents:
|
|
|
|
- interface Loopback999
|
|
|
|
match: none
|
|
|
|
|
|
|
|
- name: configure device with comment
|
|
|
|
iosxr_config:
|
|
|
|
src: basic/config.j2
|
|
|
|
comment: "this is sensible commit message"
|
2019-07-19 15:33:35 +02:00
|
|
|
exclusive: true
|
2016-10-28 20:50:29 +02:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.updates is not defined"
|
|
|
|
|
|
|
|
- name: check device with config
|
|
|
|
iosxr_config:
|
|
|
|
src: basic/config.j2
|
2019-07-19 15:33:35 +02:00
|
|
|
exclusive: true
|
2016-10-28 20:50:29 +02:00
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == false"
|
|
|
|
- "result.updates is not defined"
|
|
|
|
|
2017-12-20 17:26:09 +01:00
|
|
|
- debug: msg="END cli/comment.yaml on connection={{ ansible_connection }}"
|