Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kdpuvvadi/omada-upgrade-ansible

Upgrade Omada Controller with Ansible
https://github.com/kdpuvvadi/omada-upgrade-ansible

ansible ansible-playbook omada omada-controller sdn sdn-network

Last synced: about 2 months ago
JSON representation

Upgrade Omada Controller with Ansible

Awesome Lists containing this project

README

        

# Upgrade Omada Controller with Ansible

Update you Omada Controller with Ansible

## Clone the repo

```bash
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](https://www.tp-link.com/en/support/download/omada-software-controller/v5/)

## Setup Ansible

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

## Test Connection

```bash
ansible all -m ping
```

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

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

## Install

Run the playbook with

```bash
ansible-playbook main.yml
```

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

```bash
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.