No description
Find a file
2025-10-06 22:41:55 +00:00
defaults update common format 2025-10-06 22:41:55 +00:00
meta update common format 2025-10-06 22:41:55 +00:00
tasks update common format 2025-10-06 22:41:55 +00:00
.gitignore update common format 2025-10-06 22:41:55 +00:00
README.md update docs, update for new shared tasks, cleanup, etc 2023-10-08 20:39:35 +00:00

ansible-roles-uptime

This role is designed to deploy uptime kuma as a standalone podman container

Task Configuration

Define uptime_url, this will useful in conjunction with a proxy role such as traefik or nginx

Define uptime_path if the container user has a custom homedir such as something under /srv..

- name: Setup proxy and service
  hosts: somehost
  become: true
  roles:
    - role: uptime
      uptime_url: uptime.somehost.somewhere
    - role: traefik
      traefik_routes:
        - name: uptime
          host: "{{ uptime_url }}"
          srv: "{{ traefik_host_address }}:3001"
    - role: firewalld
      firewalld_add:
        - name: public
          services:
            - http
            - https
          forwards:
            - port: 80
              to: 8080
            - port: 443
              to: 8443

Deployment and Removal

Sometimes you need to manually stop the running containers to get a clean run when re-deploying Services must be stopped as the respecitve user or another means to aquire the correct user scope for systemd

systemctl --user stop container-traefik.service
systemctl --user stop container-uptime.service

Deploy

ansible-playbook -i hosts site.yml --tags=firewalld,traefik,uptime --limit=somehost

Remove

ansible-playbook -i hosts site.yml --tags=firewalld,traefik,uptime --extra-vars "container_state=absent firewall_action=remove" --limit=somehost