From 8b2ab2f2eb46645bdfd676a2aad7afc4b1d0933e Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sun, 23 Mar 2025 17:45:27 +0100 Subject: [PATCH] bank: Remove inflatinator Replaced by a Forgejo Action --- roles/bank/tasks/inflatinator.service | 9 -------- roles/bank/tasks/inflatinator.yaml | 33 --------------------------- roles/bank/tasks/main.yaml | 4 ---- 3 files changed, 46 deletions(-) delete mode 100644 roles/bank/tasks/inflatinator.service delete mode 100644 roles/bank/tasks/inflatinator.yaml diff --git a/roles/bank/tasks/inflatinator.service b/roles/bank/tasks/inflatinator.service deleted file mode 100644 index c4a2397..0000000 --- a/roles/bank/tasks/inflatinator.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Update product prices in Revbank - -[Service] -Type=oneshot -ExecStart=/opt/revbank-inflatinator/.venv/bin/python /opt/revbank-inflatinator/inflatinator/ /home/bank/revbank.products -EnvironmentFile=/etc/revbank-inflatinator/env.conf -User=bank -Group=bank diff --git a/roles/bank/tasks/inflatinator.yaml b/roles/bank/tasks/inflatinator.yaml deleted file mode 100644 index 9ae9427..0000000 --- a/roles/bank/tasks/inflatinator.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -- name: Install dependencies - ansible.builtin.apt: - name: virtualenv - state: present - -- name: Clone revbank-inflatinator source - ansible.builtin.git: - repo: https://git.bitlair.nl/bitlair/revbank-inflatinator.git - version: main - dest: /opt/revbank-inflatinator - accept_hostkey: yes - -- name: Create virtualenv - ansible.builtin.command: - cmd: virtualenv /opt/revbank-inflatinator/.venv - args: - creates: /opt/revbank-inflatinator/.venv - -- name: Install Python dependencies - ansible.builtin.shell: - cmd: . .venv/bin/activate && pip install -r requirements.txt - args: - chdir: /opt/revbank-inflatinator - -- name: Install service - ansible.builtin.template: - src: inflatinator.service - dest: /etc/systemd/system/revbank-inflatinator.service - owner: root - group: root - mode: 0644 - notify: Daemon reload diff --git a/roles/bank/tasks/main.yaml b/roles/bank/tasks/main.yaml index 7ad90f6..022642e 100644 --- a/roles/bank/tasks/main.yaml +++ b/roles/bank/tasks/main.yaml @@ -6,7 +6,3 @@ - tags: [ bank, bank_revbank ] ansible.builtin.import_tasks: file: revbank.yaml - -- tags: [ bank, bank_inflatinator ] - ansible.builtin.import_tasks: - file: inflatinator.yaml