aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/jail_hommabot.yml
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-05-13 00:13:57 +0300
committerJan Tuomi <jan@jantuomi.fi>2026-05-16 18:42:27 +0300
commitb5860daf11ac353049cb1654b9414a129e5cfb96 (patch)
tree87ed89711e4f0e85ace0a97fa123199152c67302 /tasks/jail_hommabot.yml
parent4715a28fdcd87440400d17154bfa361d99db29cc (diff)
Rework
Diffstat (limited to 'tasks/jail_hommabot.yml')
-rw-r--r--tasks/jail_hommabot.yml62
1 files changed, 0 insertions, 62 deletions
diff --git a/tasks/jail_hommabot.yml b/tasks/jail_hommabot.yml
deleted file mode 100644
index b86d5d6..0000000
--- a/tasks/jail_hommabot.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-- name: Install packages inside jail
- loop:
- - { jail: hommabot, package: npm }
- include_tasks: pkg_jail_install.yml
-
-- name: Build hommabot on this machine
- delegate_to: localhost
- shell: |
- cd ../hommabot2
- npm run build
-
-- name: Create hommabot directory
- file:
- path: /usr/local/jails/containers/hommabot/root/hommabot
- state: directory
- owner: root
- group: wheel
- mode: "0755"
-
-- name: Install index.js
- copy:
- src: "{{ item }}"
- dest: /usr/local/jails/containers/hommabot/root/hommabot/
- owner: root
- group: wheel
- mode: "0644"
- loop:
- - "../hommabot2/build/index.js"
- - "../hommabot2/package.json"
- - "../hommabot2/package-lock.json"
-
-- name: Install hommabot env file
- template:
- src: hommabot/root_hommabot_env.j2
- dest: /usr/local/jails/containers/hommabot/root/hommabot/.env
- owner: root
- group: wheel
- mode: "0600"
-
-- name: Install deps.sh
- copy:
- src: templates/hommabot/root_hommabot_deps.sh
- dest: /usr/local/jails/containers/hommabot/root/hommabot/deps.sh
- owner: root
- group: wheel
- mode: "0755"
-
-- name: Install dependencies
- shell: jexec hommabot /root/hommabot/deps.sh
-
-- name: Set up crontab
- template:
- src: hommabot/etc_crontab.j2
- dest: /usr/local/jails/containers/hommabot/etc/crontab
- owner: root
- group: wheel
- mode: "0644"
- register: jail_hommabot_etc_crontab
-
-- name: Restart cron
- shell: jexec hommabot service cron restart
- when: jail_hommabot_etc_crontab.changed