.github | ||
defaults | ||
handlers | ||
meta | ||
molecule/default | ||
tasks | ||
templates | ||
.ansible-lint | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
.yamllint | ||
CHANGELOG.md | ||
git-conventional-commits.yaml | ||
LICENSE | ||
README.md | ||
test-requirements.txt |
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 tolscr.io/linuxserver/unifi-controller:latest
-
unifi_uid
: Owner UID. Defaults to1000
-
unifi_gid
: Owner GID. Defaults to1000
-
unifi_mem_limit
: Java memory limit for the controller. Defaults to1024
-
unifi_mem_startup
: Java default memory at startup. Defaults to1024
-
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 to8443
unifi_http_port_3478
: Internal 3478 port to be exposed at. Defaults to3478
unifi_http_port_10001
: Internal 10001 port to be exposed at. Defaults to10001
unifi_http_port_8080
: Internal 8080 port to be exposed at. Defaults to8080
Following are optional ports. If not declared (empty) they are not exposed
unifi_http_port_1900
: Internal 1900 port to be exposed at. Defaults to1900
unifi_http_port_8843
: Internal 8843 port to be exposed at. Defaults to8843
unifi_http_port_8880
: Internal 8880 port to be exposed at. Defaults to8880
unifi_http_port_6789
: Internal 6789 port to be exposed at. Defaults to6789
-unifi_http_port_5514
: Internal 5514 port to be exposed at. Defaults to5514
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 roleunifi_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.
Author Information
This role was created in 2023 by Laur Ivan.
Built With
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.