Retrying jail startup and chroot mounts in case they bail out

This commit is contained in:
László Károlyi 2022-02-19 21:54:15 +01:00
parent 3fd41b6d81
commit f3f3bc34a2
Signed by: karolyi
GPG key ID: 2DCAF25E55735BFE
2 changed files with 8 additions and 0 deletions

View file

@ -29,6 +29,10 @@
{{ dynamic_jails_path }}/configs/{{ vars["jail_" + jail_name + "_newest_id"] }}/fstab
args:
warn: no
register: result
retries: 10
delay: 1
until: result is succeeded
- name: Restarting syslog
service:

View file

@ -92,6 +92,10 @@
{{
vars['jail_' + jail_name + '_newest_id']
}}
register: result
retries: 10
delay: 1
until: result is succeeded
- include_tasks: '{{ vars["jail_" + jail_name + "_include_createnew_poststart"] | default(jail_include_noop) }}'
vars: