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
18 changes: 6 additions & 12 deletions roles/_init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,15 @@
path: "{{ provision_lock_file }}"
register: _ce_provision_lock

- name: Abort if ce-provision lock file exists.
- name: Fail the pipeline if ce-provision lock file exists.
ansible.builtin.fail:
msg: "ce-provision lock file discovered, an infrastructure build is in progress! If this is not the case, login to the affected server and delete the file at {{ provision_lock_file }}."
when: _ce_provision_lock.stat.exists is defined and _ce_provision_lock.stat.exists
block:
- name: Abort if ce-provision lock file is found.
ansible.builtin.debug:
msg: "ce-provision lock file discovered, an infrastructure build is in progress! If this is not the case, login to the affected server and delete the file at {{ provision_lock_file }}."
- ansible.builtin.meta: end_play

- name: Check OS family.
- name: Fail the pipeline if target is a Windows server.
ansible.builtin.fail:
msg: "ce-deploy currently only supports Linux like operating systems, and works best with Debian Linux."
when: ansible_os_family == "Windows"
block:
- name: Abort if target is a Windows server.
ansible.builtin.debug:
msg: "ce-deploy currently only supports Linux like operating systems, and works best with Debian Linux."
- ansible.builtin.meta: end_play

- name: Set a lock file.
ansible.builtin.file:
Expand Down
Loading