Skip to content

kdpuvvadi/omada-upgrade-ansible

Repository files navigation

Upgrade Omada Controller with Ansible

Update you Omada Controller with Ansible

Clone the repo

git clone https://github.com/kdpuvvadi/omada-upgrade-ansible.git && cd omada-upgrade-ansible

Vars & Inventory

  • Copy inventory sample file cp inventory.ini.j2 inventory.ini
  • Change the ip address with actual IP address of the host server.
  • Copy varible file with cp vars.yml.j2 vars.ini

Make sure to change the urls of omada_url_old with your current version of Omada version omada_url with latest version url.

Latest version of Omada Controller can be found here

Setup Ansible

  • install python & pip with sudo apt install python3 python3-pip -y
  • install ansible with pip python3 -m pip install ansible

Test Connection

ansible all -m ping

If connection is good, output should be something like below.

server1 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false,
    "ping": "pong"
}

Install

Run the playbook with

ansible-playbook main.yml

If user needs password for elevation, append -K to the above.

ansible-playbook main.yml -K

Post Installation

If playbook run was successfull and didn't encounter any error, controller will be install and Omada controller will be available on http://HOST-IP:8088/ or https://HOST-IP:8043/.

Ports

From v5.0.29 Adoption port has been changed to 29814/tcp. Omada controller needs these ports 8088, 8043, 27001, 27002, 29810, 29811, 29812, 29813 and 29814 to work properly.