Developer

 View Only
  • 1.  Ansible arubaoss modules

    Posted May 04, 2019 04:37 PM

    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!



  • 2.  RE: Ansible arubaoss modules
    Best Answer

    Posted May 06, 2019 01:47 PM

    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



  • 3.  RE: Ansible arubaoss modules

    Posted May 11, 2019 08:22 AM

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