Hi!
To tell Ansible to use HTTPS we need to pass in the use_ssl parameter to each module call like so:
- name: Create VLAN 300
arubaoss_vlan:
vlan_id: 300
name: "vlan300"
config: "create"
command: config_vlan
use_ssl: True
api_version: v6.0 You'll notice I also passed in the api_version as a parameter, this is because the Ansible modules use HTTP to retrieve the REST API versions supported on the switch. Since we're strictly using HTTPS, we'll need to provide the api_version as well as the use_ssl parameter.
For REST API support in stacked ArubaOS-Switches, since release WC 16.04.008 (2930F/M) and KB.16.04.0008 (3810M/5400R) management of stacks of switches via REST API's are supported. This counts for backplane stacks and VSF (front plane).
I hope this answers your question!
Also since you're just getting started with Ansible, I would highly recommend checking out our Aruba Bots Automate with Ansible Series on the Airheads Broadcasting Channel! https://www.youtube.com/watch?v=OtN2P5rcPrY