|
|
|
@ -4,38 +4,10 @@
|
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
---
|
|
|
|
|
- block:
|
|
|
|
|
# - name: Test an API key is provided
|
|
|
|
|
# fail:
|
|
|
|
|
# msg: Please define an API key
|
|
|
|
|
# when: auth_key is not defined
|
|
|
|
|
|
|
|
|
|
# - name: Use an invalid domain
|
|
|
|
|
# meraki_switchport:
|
|
|
|
|
# auth_key: '{{ auth_key }}'
|
|
|
|
|
# host: marrrraki.com
|
|
|
|
|
# state: query
|
|
|
|
|
# serial: Q2HP-2C6E-GTLD
|
|
|
|
|
# org_name: IntTestOrg
|
|
|
|
|
# delegate_to: localhost
|
|
|
|
|
# register: invaliddomain
|
|
|
|
|
# ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
# - name: Disable HTTP
|
|
|
|
|
# meraki_switchport:
|
|
|
|
|
# auth_key: '{{ auth_key }}'
|
|
|
|
|
# use_https: false
|
|
|
|
|
# state: query
|
|
|
|
|
# serial: Q2HP-2C6E-
|
|
|
|
|
# output_level: debug
|
|
|
|
|
# delegate_to: localhost
|
|
|
|
|
# register: http
|
|
|
|
|
# ignore_errors: yes
|
|
|
|
|
|
|
|
|
|
# - name: Connection assertions
|
|
|
|
|
# assert:
|
|
|
|
|
# that:
|
|
|
|
|
# - '"Failed to connect to" in invaliddomain.msg'
|
|
|
|
|
# - '"http" in http.url'
|
|
|
|
|
- name: Test an API key is provided
|
|
|
|
|
fail:
|
|
|
|
|
msg: Please define an API key
|
|
|
|
|
when: auth_key is not defined
|
|
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
|
syslog_test_net_name: 'syslog_{{test_net_name}}'
|
|
|
|
|