mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
c53dcd1982
* Remove platform agnostic net_* test cases. * Add minimal platform agnostic test cases to individual platform-specific test cases
35 lines
No EOL
901 B
YAML
35 lines
No EOL
901 B
YAML
---
|
|
- debug: msg="START junos net_banner netconf/net_banner.yaml on connection={{ ansible_connection }}"
|
|
|
|
- name: setup - remove login banner
|
|
net_banner:
|
|
banner: login
|
|
state: absent
|
|
provider: "{{ netconf }}"
|
|
|
|
- name: Create login banner
|
|
net_banner:
|
|
banner: login
|
|
text: this is my login banner configured by net_banner
|
|
state: present
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
|
|
- name: Get running configuration
|
|
junos_rpc:
|
|
rpc: get-configuration
|
|
provider: "{{ netconf }}"
|
|
register: config
|
|
|
|
- assert:
|
|
that:
|
|
- "result.changed == true"
|
|
- "'<message>this is my login banner configured by net_banner</message>' in config.xml"
|
|
|
|
- name: teardown - remove login banner
|
|
net_banner:
|
|
banner: login
|
|
state: absent
|
|
provider: "{{ netconf }}"
|
|
|
|
- debug: msg="END junos net_banner netconf/net_banner.yaml on connection={{ ansible_connection }}" |