Compare commits

...

2 commits

Author SHA1 Message Date
1b04d0f5c3 bank: RevBank 10.3
Some checks failed
Test / build (push) Failing after 1m2s
2025-05-07 01:00:01 +02:00
b9be1729b3 bank: RevBank 10.2 2025-05-07 00:47:00 +02:00
4 changed files with 11 additions and 18 deletions

View file

@ -1,3 +1,3 @@
bank_user: bank
bank_revbank_git: https://git.bitlair.nl/bitlair/revbank.git
bank_local_tty: no
bank_revbank_version: "10.3.0"

View file

@ -1,18 +1,10 @@
---
- name: Install revbank login shell
ansible.builtin.template:
src: login.sh
dest: /usr/local/bin/revbank-login
owner: root
group: root
mode: "0755"
- name: Add user
ansible.builtin.user:
name: bank
password: $6$idklol$QrOE/21LDR0vhZBAXwgA7AvnmR6Ju4ZqzAzgeazC08i2yw9kyQjgwu.uuV692iL/cyE7AteDYUxCpcorONXom. # "bank"
home: /home/{{ bank_user }}
shell: /usr/local/bin/revbank-login
shell: /usr/local/share/revbank/revbank
update_password: always
- name: Allow password auth for bank user

View file

@ -6,11 +6,18 @@
- name: Clone revbank source
ansible.builtin.git:
repo: "{{ bank_revbank_git }}"
version: master
repo: https://github.com/revspace/revbank.git
version: "v{{ bank_revbank_version }}"
dest: /usr/local/share/revbank
accept_hostkey: yes
- name: Clone revbank-plugin source
ansible.builtin.git:
repo: https://git.bitlair.nl/bitlair-bestuur/revbank-plugins.git
version: main
dest: /usr/local/share/revbank-plugins
accept_hostkey: yes
- name: Install git cronjob
ansible.builtin.template:
src: git.cron

View file

@ -1,6 +0,0 @@
#!/bin/bash
export REVBANK_DIR=/usr/local/share/revbank
export REVBANK_PLUGINS="$(cat $REVBANK_DIR/data/plugins | sed 's/ *#.*$//g' | sed '/^$/d' | tr '\n' ' ')"
$REVBANK_DIR/revbank