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
4 changes: 4 additions & 0 deletions roles/deploy_code/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ deploy_code:
templates: []
# Number of builds to keep. Note this is independant of databases/dump.
keep: 10
# Number of task retries - specifically for SquashFS unmount
unmount_retries: 3
# Delay in seconds - specificalčly for SquashFS unmount
unmount_delay: 20
# Whether to sync the local deploy base to a shared destination, after successful build.
mount_sync: ""
# mount_sync: "/home/{{ deploy_user }}/shared/{{ project_name }}_{{ build_type }}/deploy"
Expand Down
4 changes: 4 additions & 0 deletions roles/deploy_code/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@
become: true
when:
- _deploy_code_mount_check.rc == 0
register: task_result
retries: "{{ deploy_code.unmount_retries }}"
delay: "{{ deploy_code.unmount_delay }}"
until: task_result.rc == 0

- name: Mount new SquashFS image.
ansible.builtin.command:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
- domain.statuscake_check_id | length > 0
- domain.statuscake_api_key is defined
- domain.statuscake_api_key | length > 0
no_log: true
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
- domain.statuscake_check_id | length > 0
- domain.statuscake_api_key is defined
- domain.statuscake_api_key | length > 0
no_log: true