Skip to content
Snippets Groups Projects
Commit 669f0720 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#2921 Fix bug and include a force init feature

parent b58f2af9
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
import_tasks: install.yml import_tasks: install.yml
when: jailkit_available is defined and jailkit_available.stdout != '/usr/sbin/jk_init' when: jailkit_available is defined and jailkit_available.stdout != '/usr/sbin/jk_init'
# See https://savannah.nongnu.org/bugs/?58804
- name: Patch JK Lib
command: sed -i 's/+chroot+rfile+/+chrootrfile+/g' /usr/share/jailkit/jk_lib.py
tags:
- always
- name: Create Jail Root Directory - name: Create Jail Root Directory
file: file:
path: '{{ jailroot }}' path: '{{ jailroot }}'
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- block: - block:
- name: JailKit Update Components - name: JailKit Update Components
shell: jk_init -j {{ jailroot }}/{{ drupal.jail.name }} {{ jailkit_components }} shell: jk_init {% if force|default('no')=='yes' %}-f {% endif %}-j {{ jailroot }}/{{ drupal.jail.name }} {{ jailkit_components }}
- name: JailKit Update Directories - name: JailKit Update Directories
shell: jk_update -j {{ jailroot }}/{{ drupal.jail.name }} --skip={{ jailroot }}/{{ drupal.jail.name }}/home/{{ drupal.jail.name }} --skip=/etc/drush/aliases.drushrc.php /bin /dev /etc /home /lib /lib64 /opt /usr shell: jk_update -j {{ jailroot }}/{{ drupal.jail.name }} --skip={{ jailroot }}/{{ drupal.jail.name }}/home/{{ drupal.jail.name }} --skip=/etc/drush/aliases.drushrc.php /bin /dev /etc /home /lib /lib64 /opt /usr
......
...@@ -77,7 +77,7 @@ includesections = basicshell ...@@ -77,7 +77,7 @@ includesections = basicshell
[zsh] [zsh]
comment = zsh shell comment = zsh shell
paths = /usr/bin/zsh, /etc/zsh, /usr/lib/x86_64-linux-gnu/zsh, /usr/share/zsh paths = /bin/zsh, /usr/bin/zsh, /etc/zsh, /usr/lib/x86_64-linux-gnu/zsh, /usr/share/zsh
users = root users = root
groups = root groups = root
includesections = basicshell includesections = basicshell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment