Developer

 View Only
last person joined: 5 days ago 

Expand all | Collapse all

How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

This thread has been viewed 165 times
  • 1.  How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

    Posted Oct 04, 2019 02:13 PM

    These below instructions are for installing Ansible and the Aruba Ansible Modules to an Ubuntu 18.04 Linux machine.

    Aruba Ansible Modules currently support the following products:

    • AOS-CX
    • AOS-Switch
    • Aruba Activate
    • Aruba Airwave
    • Aruba Clearpass
    • ArubaOS Controller

     

    You can install Ansible through 1 of 2 methods:

    1. Through apt-get (or any other package installer if using a different version of Linux) :
    • First you’ll need to add the repository to your package installer: 
      sudo apt-add-repository --yes --update ppa:ansible/ansible
    • Then install ansible: 
      sudo apt-get install ansible
    1. Through git:
    • Change into the cloned ansible directory and set up your environment by running the script in the directory hacking:
      cd ansible
      source ./hacking/env-setup


    Once Ansible is installed, validate its installation was completed successfully by executing the below command and validating its output, your output will look slightly different when using the developer version of Ansible:

    $ ansible --version
    ansible 2.7.2
      config file = /etc/ansible/ansible.cfg
      configured module search path = [u'/home/administrator/.ansible/plugins/modules', 	 				  u'/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python2.7/dist-packages/ansible
      executable location = /usr/bin/ansible
      python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]

    Now that you have Ansible installed you’re ready to install the Aruba Ansible Modules.

     

    For AOS-CX Modules install the AOS-CX Role using the following command AFTER you've installed Ansible:

    ansible-galaxy install arubanetworks.aoscx_role

    For all other supported Aruba You’ll need to download a copy of the Aruba Ansible Modules Github and run the module installer script:

    1. Download or clone a copy of the Aruba Ansible Modules Github to your Ubuntu machine:
      git clone https://github.com/aruba/aruba-ansible-modules.git
    1. Change into the newly created aruba-ansible-modules directory and run the module installer in the aruba_module_installer folder, you may need elevated permissions using the keyword sudo:
      cd aruba-ansible-modules
      
      sudo python aruba_module_installer/aruba_module_installer.py
    1. Next is to validate your Aruba modules have been installed correctly, you can do this by executing one of the example playbooks in the aruba-ansible-modules/example_playbooks directory. For each product’s modules there exists a sample inventory file to use with the modules. If necessary you might have to modify the sample inventory file to match the information of your device. For AOS-Switch refer to How to Run a Playbook on AOS-Switch .


  • 2.  RE: How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

    EMPLOYEE
    Posted Sep 13, 2020 09:35 PM

    As a FYI, I had to install GIT before completing these directions (apt-get install git) 



  • 3.  RE: How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

    EMPLOYEE
    Posted Feb 23, 2021 10:15 PM
    Hi Andrew

    I am not  able to connect and download the aruba ansible module .from my ubuntu server.
    I am getting error like the following below

    neadmin@neadmin-virtual-machine:/etc/apt/apt.conf.d$ ansible-galaxy install arubanetworks.aoscx_role
    [WARNING]: - arubanetworks.aoscx_role was NOT installed successfully: Unknown
    error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/':
    <urlopen error [Errno 101] Network is unreachable>
    ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.


    Do you have theansible galaxy file offline for me to install on my ubuntu server ?
    ansible-galaxy install arubanetworks.aoscx_role



  • 4.  RE: How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

    MVP GURU
    Posted Mar 02, 2021 04:19 PM
    You can go on https://galaxy.ansible.com/arubanetworks/aoscx and click on download tarball

    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------



  • 5.  RE: How to Install Ansible and Aruba Ansible Modules on Ubuntu 18.04

    Posted Feb 26, 2021 12:44 PM
    Ansible workflows and modules for ArubaOS-switch and ArubaOS-CX  This project has been tested on Ubuntu 18.04 and CentOS 7 Linux OS but it can be used on any This project requires Aruba Switching Ansible Modules to be installed.
    pupilpath
    ------------------------------
    Mary Mary
    ------------------------------