--- - name: Deploy Uptime Kuma 2 hosts: uptime_kuma become: true tasks: - name: Ensure named Docker volume exists community.docker.docker_volume: name: uptime-kuma state: present - name: Run Uptime Kuma container community.docker.docker_container: name: uptime-kuma image: louislam/uptime-kuma:2 state: started restart_policy: unless-stopped published_ports: - "3001:3001" volumes: - uptime-kuma:/app/data pull: true