Tested on Control Node Ubuntu 20.04 LTS. Ansible 2.14.0
- Install pip
sudo apt install python3-pip -y
- Install ansible with
pip install -r requirements.txt
It also installs
ansible-lint
andyamllint
. To only install ansiblepip install ansible
OpenJDK 8 Headless
MongoDB
curl
jsvc
tar
ca-certificates
apt-transport-https
- Clone the repo
git clone https://github.com/kdpuvvadi/unifi.git unifi
. - Install requirements
ansible-galaxy collection install -r requirements.yml
. - Inventory with
cp inventory.ini.j2 inventory.ini
. - Setup inventory.
- Variables with
cp vars.yml.j2 vars.yml
.
- Run
ansible-playbook main.yml
append-K
- if you need password for
sudo
for root access on your host.ansible-playbook main.yml -K
- unifi controller will be available on
https://HOST-IP:8043/
.
sudo service unifi status
-- show the status of Controller.sudo service unifi restart
-- restart the unifi Controller.sudo service unifi stop
--stop running the unifi Controller.