bank: Remove inflatinator
Replaced by a Forgejo Action
This commit is contained in:
parent
f0fd0ee6f2
commit
8b2ab2f2eb
3 changed files with 0 additions and 46 deletions
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue