From a41a0e6e81d1ba85982ab7b1441ce9ddec510231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claes=20Hallstr=C3=B6m?= Date: Tue, 9 Apr 2024 21:12:38 +0200 Subject: [PATCH] Remove doku and monocker roles --- .github/workflows/doku.yaml | 25 ------------------------ .github/workflows/monocker.yaml | 25 ------------------------ README.md | 2 -- main.yaml | 4 ---- roles/doku/tasks/main.yaml | 7 ------- roles/doku/templates/compose.yaml.j2 | 13 ------------ roles/monocker/tasks/main.yaml | 7 ------- roles/monocker/templates/compose.yaml.j2 | 13 ------------ 8 files changed, 96 deletions(-) delete mode 100644 .github/workflows/doku.yaml delete mode 100644 .github/workflows/monocker.yaml delete mode 100644 roles/doku/tasks/main.yaml delete mode 100644 roles/doku/templates/compose.yaml.j2 delete mode 100644 roles/monocker/tasks/main.yaml delete mode 100644 roles/monocker/templates/compose.yaml.j2 diff --git a/.github/workflows/doku.yaml b/.github/workflows/doku.yaml deleted file mode 100644 index 01f7ec8a..00000000 --- a/.github/workflows/doku.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Deploy doku - -on: # yamllint disable-line rule:truthy - push: - branches: - - main - paths: - - roles/doku/** - - .github/workflows/doku.yaml - pull_request: - paths: - - roles/doku/** - - .github/workflows/doku.yaml - -jobs: - doku: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.1 - - uses: ./.github/actions/setup-ansible - - run: | - ansible-playbook main.yaml --limit localhost --tags doku - - docker ps --filter name=doku | grep --quiet doku diff --git a/.github/workflows/monocker.yaml b/.github/workflows/monocker.yaml deleted file mode 100644 index a93ad5cc..00000000 --- a/.github/workflows/monocker.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Deploy monocker - -on: # yamllint disable-line rule:truthy - push: - branches: - - main - paths: - - roles/monocker/** - - .github/workflows/monocker.yaml - pull_request: - paths: - - roles/monocker/** - - .github/workflows/monocker.yaml - -jobs: - monocker: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4.1.1 - - uses: ./.github/actions/setup-ansible - - run: | - ansible-playbook main.yaml --limit localhost --tags monocker - - docker ps --filter name=monocker | grep --quiet monocker diff --git a/README.md b/README.md index c7d2fdc5..414005c1 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,12 @@ ![autorestic](https://github.com/claha/smart-home/actions/workflows/autorestic.yaml/badge.svg) ![diun](https://github.com/claha/smart-home/actions/workflows/diun.yaml/badge.svg) -![doku](https://github.com/claha/smart-home/actions/workflows/doku.yaml/badge.svg) ![duckdns](https://github.com/claha/smart-home/actions/workflows/duckdns.yaml/badge.svg) ![gatus](https://github.com/claha/smart-home/actions/workflows/gatus.yaml/badge.svg) ![glances](https://github.com/claha/smart-home/actions/workflows/glances.yaml/badge.svg) ![healthchecks](https://github.com/claha/smart-home/actions/workflows/healthchecks.yaml/badge.svg) ![homeassistant](https://github.com/claha/smart-home/actions/workflows/homeassistant.yaml/badge.svg) ![homepage](https://github.com/claha/smart-home/actions/workflows/homepage.yaml/badge.svg) -![monocker](https://github.com/claha/smart-home/actions/workflows/monocker.yaml/badge.svg) ![mosquitto](https://github.com/claha/smart-home/actions/workflows/mosquitto.yaml/badge.svg) ![pihole](https://github.com/claha/smart-home/actions/workflows/pihole.yaml/badge.svg) ![piper](https://github.com/claha/smart-home/actions/workflows/piper.yaml/badge.svg) diff --git a/main.yaml b/main.yaml index 9fa6da99..673eaae0 100644 --- a/main.yaml +++ b/main.yaml @@ -186,10 +186,6 @@ tags: piper - role: whisper tags: whisper - - role: monocker - tags: monocker - - role: doku - tags: doku - name: Setup micro hosts: micro diff --git a/roles/doku/tasks/main.yaml b/roles/doku/tasks/main.yaml deleted file mode 100644 index 2182775d..00000000 --- a/roles/doku/tasks/main.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Create docker compose service - ansible.builtin.include_role: - name: docker_compose_service - vars: - docker_compose_service_name: doku - docker_compose_service_template: true diff --git a/roles/doku/templates/compose.yaml.j2 b/roles/doku/templates/compose.yaml.j2 deleted file mode 100644 index fa465f6f..00000000 --- a/roles/doku/templates/compose.yaml.j2 +++ /dev/null @@ -1,13 +0,0 @@ ---- -services: - doku: - image: docker.io/amerkurev/doku:v0.0.16 - container_name: doku - security_opt: - - no-new-privileges:true - ports: - - 9090:9090 - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - /:/hostroot:ro - restart: unless-stopped diff --git a/roles/monocker/tasks/main.yaml b/roles/monocker/tasks/main.yaml deleted file mode 100644 index 335d55ab..00000000 --- a/roles/monocker/tasks/main.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Create docker compose service - ansible.builtin.include_role: - name: docker_compose_service - vars: - docker_compose_service_name: monocker - docker_compose_service_template: true diff --git a/roles/monocker/templates/compose.yaml.j2 b/roles/monocker/templates/compose.yaml.j2 deleted file mode 100644 index 8767f59b..00000000 --- a/roles/monocker/templates/compose.yaml.j2 +++ /dev/null @@ -1,13 +0,0 @@ ---- -services: - monocker: - image: docker.io/petersem/monocker:latest - container_name: monocker - security_opt: - - no-new-privileges:true - environment: - SERVER_LABEL: "{{ ansible_hostname }}" - MESSAGE_PLATFORM: "telegram@{{ telegram_token }}@{{ telegram_chatids }}" - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - restart: unless-stopped