Go to file
2025-01-08 23:44:49 +01:00
.github feat: Initial commit 2023-09-21 14:58:46 +02:00
defaults fix: Fix errorneous mongo configuration 2025-01-08 23:42:27 +01:00
handlers feat: Initial commit 2023-09-21 14:58:46 +02:00
meta feat: Initial commit 2023-09-21 14:58:46 +02:00
molecule/default fix: Linting. 2023-09-21 15:39:23 +02:00
tasks fix: Fix errorneous mongo configuration 2025-01-08 23:42:27 +01:00
templates fix: Fix errorneous mongo configuration 2025-01-08 23:44:49 +01:00
.ansible-lint fix: Linting. 2023-09-21 15:39:23 +02:00
.gitattributes feat: Initial commit 2023-09-21 14:58:46 +02:00
.gitignore feat: Initial commit 2023-09-21 14:58:46 +02:00
.travis.yml feat: Initial commit 2023-09-21 14:58:46 +02:00
.yamllint feat: Initial commit 2023-09-21 14:58:46 +02:00
CHANGELOG.md fix: Fix errorneous mongo configuration 2025-01-08 23:44:49 +01:00
git-conventional-commits.yaml chore: Update unifi controller. 2025-01-08 09:26:38 +01:00
LICENSE feat: Initial commit 2023-09-21 14:58:46 +02:00
README.md chore: Typo. 2023-09-21 15:16:41 +02:00
test-requirements.txt fix: Linting. 2023-09-21 15:39:23 +02:00

Unifi-Controller Ansible role

This role installs Unifi-Controller via Docker compose.

Requirements

None

Role Variables

All variables are listed below (see also defaults/main.yml).

Generic variables

  • unifi_image: The docker image to be used for the unifi controller. Defaults to lscr.io/linuxserver/unifi-controller:latest

  • unifi_uid: Owner UID. Defaults to 1000

  • unifi_gid: Owner GID. Defaults to 1000

  • unifi_mem_limit: Java memory limit for the controller. Defaults to 1024

  • unifi_mem_startup: Java default memory at startup. Defaults to 1024

  • unifi_volume: The volume where the controller saves local data like configuration and logs. Defaults to "unifi"

Ports

  • unifi_http_port_8443: Internal 8443 port to be exposed at. Defaults to 8443
  • unifi_http_port_3478: Internal 3478 port to be exposed at. Defaults to 3478
  • unifi_http_port_10001: Internal 10001 port to be exposed at. Defaults to 10001
  • unifi_http_port_8080: Internal 8080 port to be exposed at. Defaults to 8080

Following are optional ports. If not declared (empty) they are not exposed

  • unifi_http_port_1900: Internal 1900 port to be exposed at. Defaults to 1900
  • unifi_http_port_8843: Internal 8843 port to be exposed at. Defaults to 8843
  • unifi_http_port_8880: Internal 8880 port to be exposed at. Defaults to 8880
  • unifi_http_port_6789: Internal 6789 port to be exposed at. Defaults to 6789 -unifi_http_port_5514: Internal 5514 port to be exposed at. Defaults to 5514

Paths and volumes

unifi_root_path: /var/local unifi_data_base: "{{ unifi_root_path }}/unifi-controller" unifi_config_path: "{{ unifi_root_path }}/conf/unifi-controller"

The following fields are internal. You can change them to further customise how you apply the role. For more details, please look into the defaults directory.

  • unifi_skeleton_paths: The list of paths to be created by the role
  • unifi_configuration_files: The configuration files generated by the role

Dependencies

You need a machine with docker and docker-compose installed.

Example Playbook

- hosts: servers
  roles:
      - 'laurivan.unifi_controller'

License

This project is licensed under the MIT license - see the LICENSE file for details.

MIT License

Author Information

This role was created in 2023 by Laur Ivan.

Built With

Ansible Molecule

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.