Retrying jail startup and chroot mounts in case they bail out
This commit is contained in:
parent
3fd41b6d81
commit
f3f3bc34a2
2 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue