1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration/targets/net_command/tasks/main.yml
John R Barker ec36b4968c Junos aws (#20083)
* junos Use inventory_hostname_short
* Basic Test for validating VyOS bringup in AWS
2017-01-10 11:11:00 -08:00

35 lines
1.1 KiB
YAML

---
# Test code for the net_command module.
# (c) 2017, Red Hat
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
# This is a placeholder test, will be fleshed out by gundalow at a later point
- name: Check we can communicate using net_command
net_command: show version
connection: network_cli
register: result
- debug:
msg: "{{ result.stdout }}"
- name: Ensure output is valid
assert:
that:
- result.changed == true
- "'VyOS' in result.stdout"