fixed bootstrap of chat jail, added rctl limit config stuff

This commit is contained in:
2024-12-15 18:48:41 +01:00
parent 862f2567b1
commit 7b60d8bf8c
10 changed files with 84 additions and 13 deletions

View File

@@ -34,7 +34,9 @@
- usr/local/sbin
- name: copy devzat binary
shell: install -m 755 /tmp/devzat/devzat /usr/local/bastille/templates/services/{{ role_name }}/usr/local/sbin/devzat
shell: |
install -m 755 /tmp/devzat/devzat /usr/local/bastille/templates/services/{{ role_name }}/usr/local/sbin/devzat
touch /tmp/.ansible.devzat
args:
creates: "/tmp/.ansible.devzat"
@@ -58,9 +60,11 @@
shell: bastille start {{ role_name }} || true
- name: template jail
shell: "bastille template {{ role_name }} services/{{ role_name }}"
shell: |
bastille template {{ role_name }} services/{{ role_name }}
touch /tmp/.ansible.devzattemplate
args:
# FIXME: might make it impossible to update, on the other hand w/o
# it this command fails with "devzat binary busy" when the jail is
# already running, since go binaries do not fork.
creates: "/tmp/.ansible.devzattemplate"
creates: /tmp/.ansible.devzattemplate