Skip to content
Snippets Groups Projects
Commit 2013554b authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix cleanup jails before reboot in case it contains too many files

parent ab9803e4
No related branches found
No related tags found
No related merge requests found
Pipeline #30551 passed
......@@ -138,9 +138,12 @@
exists: no
handlers:
- name: Cleanup Jails
shell: rm -rf {{ jailroot|default("/jails") }}/{{ item.jail.name }}/tmp/*
shell: find . -name "*" -type f -print0 | xargs -0 rm
args:
chdir: '{{ jailroot|default("/jails") }}/{{ item.jail.name }}/tmp'
with_items: '{{ drupal_settings|default([]) }}'
when: item.jail is defined
ignore_errors: yes
- name: Reboot hosts
shell: sleep 3; reboot now
async: 1
......
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