Developer Community

Reply
Highlighted
Contributor I

Ansible arubaoss modules

Hi All, I'm super new to ansible.

 

I have a 2930f-8G-PoE running 16.07.0002

 

downloaded the arubaos modules today (apr 4 2019)

 

the modules are connecting using http not https. How do I change this?

 

Also, does anyone know when/if we will see restAPI support on stacks 99% of my deployments are stacked

 

thank you in advance!


Accepted Solutions
Highlighted

Re: Ansible arubaoss modules

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

View solution in original post


All Replies
Highlighted

Re: Ansible arubaoss modules

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

View solution in original post

Highlighted
Contributor I

Re: Ansible arubaoss modules

Thank you Tiffany! I have watched the ansible series, looking forward to more videos in this series.

Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: