diff --git a/.github/workflows/uptimekuma.yaml b/.github/workflows/uptimekuma.yaml deleted file mode 100644 index e1577f38..00000000 --- a/.github/workflows/uptimekuma.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Deploy uptimekuma - -on: # yamllint disable-line rule:truthy - push: - branches: - - main - paths: - - roles/uptimekuma/** - - .github/workflows/uptimekuma.yaml - pull_request: - paths: - - roles/uptimekuma/** - - .github/workflows/uptimekuma.yaml - -jobs: - uptimekuma: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.0 - - uses: ./.github/actions/setup-ansible - - run: | - ansible-playbook main.yaml --limit localhost --tags uptimekuma - - docker ps --filter name=uptimekuma | grep --quiet uptimekuma diff --git a/README.md b/README.md index 1cf9dd4e..a3389e99 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,6 @@ ![speedtest](https://github.com/claha/smart-home/actions/workflows/speedtest.yaml/badge.svg) ![tailscale](https://github.com/claha/smart-home/actions/workflows/tailscale.yaml/badge.svg) ![traefik](https://github.com/claha/smart-home/actions/workflows/traefik.yaml/badge.svg) -![uptimekuma](https://github.com/claha/smart-home/actions/workflows/uptimekuma.yaml/badge.svg) ![whisper](https://github.com/claha/smart-home/actions/workflows/whisper.yaml/badge.svg) ![zigbee2mqtt](https://github.com/claha/smart-home/actions/workflows/zigbee2mqtt.yaml/badge.svg) diff --git a/main.yaml b/main.yaml index 31458f70..78eb7734 100644 --- a/main.yaml +++ b/main.yaml @@ -140,8 +140,6 @@ tags: never, tailscale - role: traefik tags: never, traefik - - role: uptimekuma - tags: never, uptimekuma - role: whisper tags: never, whisper - role: zigbee2mqtt diff --git a/roles/diun/files/config.yaml b/roles/diun/files/config.yaml index 272d6e1d..6e337296 100644 --- a/roles/diun/files/config.yaml +++ b/roles/diun/files/config.yaml @@ -127,15 +127,6 @@ include_tags: - ^v[\d+\.]+\d+$ -- name: docker.io/louislam/uptime-kuma - watch_repo: true - max_tags: 50 - sort_tags: semver - notify_on: - - new - include_tags: - - ^[\d+\.]+\d+$ - - name: docker.io/koenkk/zigbee2mqtt watch_repo: true max_tags: 50 diff --git a/roles/uptimekuma/defaults/main.yaml b/roles/uptimekuma/defaults/main.yaml deleted file mode 100644 index 9b61aee1..00000000 --- a/roles/uptimekuma/defaults/main.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -service_name: "{{ ansible_role_name }}" -service_path: "{{ services_path }}/{{ service_name }}" diff --git a/roles/uptimekuma/files/compose.yaml b/roles/uptimekuma/files/compose.yaml deleted file mode 100644 index 1469a7f1..00000000 --- a/roles/uptimekuma/files/compose.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -services: - uptimekuma: - image: docker.io/louislam/uptime-kuma:1.23.2 - container_name: uptimekuma - ports: - - 3001:3001 - volumes: - - ./data:/app/data - restart: unless-stopped diff --git a/roles/uptimekuma/handlers/main.yaml b/roles/uptimekuma/handlers/main.yaml deleted file mode 100644 index 2972fc4c..00000000 --- a/roles/uptimekuma/handlers/main.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Recreate {{ service_name }} - ansible.builtin.command: - chdir: "{{ service_path }}" - cmd: docker compose up -d --force-recreate - changed_when: true diff --git a/roles/uptimekuma/tasks/main.yaml b/roles/uptimekuma/tasks/main.yaml deleted file mode 100644 index 735a60f1..00000000 --- a/roles/uptimekuma/tasks/main.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -- name: Create directories - ansible.builtin.file: - path: "{{ item }}" - state: directory - mode: "0775" - loop: - - "{{ service_path }}" - - "{{ service_path }}/data" - -- name: Create compose file - ansible.builtin.copy: - src: "files/compose.yaml" - dest: "{{ service_path }}/compose.yaml" - mode: "0640" - notify: "Recreate {{ service_name }}"