Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions roles/_init/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ lock_file: /tmp/ce-deploy-lock
provision_lock_file: /tmp/ce-provision-lock # must match _init.lock_file in ce-provision
skip_build_path_check: false # by default we're checking if track number matches
keep_builds: 10 # the number of builds to keep in the build history, includes associated databases
build_cleanup_pattern: "{{ project_name }}_{{ build_type }}_build_*" # name pattern of the builds to be checked for cleanup
# Application specific variables.
drupal:
drush_verbose_output: false
Expand Down
6 changes: 4 additions & 2 deletions roles/_init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,20 @@
_build_numbers_clean: []
_build_numbers_to_delete: []

- name: Find all directories in this project deploy directory.
- name: Find the relevant directories in this project deploy directory.
ansible.builtin.find:
paths: "{{ deploy_base_path }}"
recurse: false
file_type: directory
patterns: "{{ build_cleanup_pattern }}"
register: _build_directories_general

- name: Find all directories in the build directory if SquashFS.
- name: Find the relevant directories in the build directory if SquashFS.
ansible.builtin.find:
paths: "{{ build_base_path }}"
recurse: false
file_type: directory
patterns: "{{ build_cleanup_pattern }}"
register: _build_directories_squashfs
when:
- deploy_code.mount_type is defined
Expand Down