Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
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
21 changes: 9 additions & 12 deletions roles/_init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
- name: Define live_symlink dest.
ansible.builtin.set_fact:
live_symlink_dest: "{{ live_symlink_dest | default('{{ deploy_base_path }}/live.{{ project_name }}_{{ build_type }}') }}"
- name: Define opcache cachetool path.
ansible.builtin.set_fact:
cachetool_bin: "{{ cachetool_bin | default('{{ deploy_base_path }}/cachetool.phar') }}"

# Manipulate variables for SquashFS builds.
- name: Define image builds base path.
Expand All @@ -47,6 +50,12 @@
when:
- deploy_code.mount_type is defined
- deploy_code.mount_type == "squashfs"
- name: Overwrite cachetool path if SquashFS deploy.
ansible.builtin.set_fact:
cachetool_bin: "{{ cachetool_bin | default('{{ build_base_path }}/cachetool.phar') }}"
when:
- deploy_code.mount_type is defined
- deploy_code.mount_type == "squashfs"

# Gather last known good build directly from symlink.
# This can happen:
Expand Down Expand Up @@ -105,18 +114,6 @@
when:
- _project_type_task_result.stat.exists

- name: Define opcache cachetool path.
ansible.builtin.set_fact:
cachetool_bin: "{{ cachetool_bin | default('{{ deploy_base_path }}/cachetool.phar') }}"
when: deploy_code.mount_type != "squashfs"

- name: Define opcache cachetool path if SquashFS deploy.
ansible.builtin.set_fact:
cachetool_bin: "{{ cachetool_bin | default('{{ build_base_path }}/cachetool.phar') }}"
when:
- deploy_code.mount_type is defined
- deploy_code.mount_type == "squashfs"

- name: Ensure we have a cachetool binary.
ansible.builtin.import_role:
name: cli/cachetool