-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_module_vmanage_mode.yml
29 lines (24 loc) · 1.04 KB
/
test_module_vmanage_mode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 2024 Cisco Systems, Inc. and its affiliates
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
---
# Helper playbooks to test modules and flows while developing them
# Tested operations:
# 1. Set vManage mode for all controller devices
- name: Testing playbook to verify cisco.catalystwan.vmanage_mode module operations
hosts: localhost
gather_facts: false
vars_files:
- configuration_file_dev_vars.yml
tasks:
- name: 1. Set vManage mode for all controller devices
cisco.catalystwan.vmanage_mode:
hostnames:
- "{{ instance_item.hostname }}"
manager_authentication:
url: "{{ (vmanage_instances | first).mgmt_public_ip }}"
username: "{{ (vmanage_instances | first).admin_username }}"
password: "{{ (vmanage_instances | first).admin_password }}"
loop: "{{ vsmart_instances + vbond_instances + vmanage_instances }}"
loop_control:
loop_var: instance_item
label: "hostname: {{ instance_item.hostname }}"