You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.5 KiB
1.5 KiB
Ansible Playbook to install uptime kuma using docker
This playbook comes with three roles
- docker (to install docker)
- nginx (to install nginx using docker with ssl)
- uptime kuma (to install uptime kuma using docker)
To see more info see docker-compose, tasks and config files I will try to make this readme better
To run it
- install ansible see here
- run
ansible-galaxy install -r ansible-requirements.yml
to get requirements - prepare inventory hosts
- put your certificates in files section in nginx role with this structure below:
ansible -> roles -> nginx -> ssl -> <uptime kuma domain>.fullchain.pem
ansible -> roles -> nginx -> ssl -> <uptime kuma domain>.privkey.pem
- to run playbook
ansible-playbook ./playbook.yml -i <your inventory path> -e "kuma_domain=<uptime kuma domain>" -e "kuma_image_os=<alpine or debian>" -e "kuma_image_version=<version>"
you can use other ansible playbook options too
Note: Replace
<uptime kuma domain>
with your desired domain for uptime kuma replace<version>
with a version from https://github.com/louislam/uptime-kuma/releases replace<alpine or debian>
with one of options-e "kuma_image_os=<alpine or debian>" -e "kuma_image_version=<version>"
is not required and you can remove this part or change only one of them (kuma_image_os is debian & kuma_image_version is 1 by default) If you are not using root user as your ansible_user use -bK option to become root