Author SHA1 Message Date
kasun 67addcbe1b bug(roles): create stack directory before copying compose file
Checks / Secret Scan (pull_request) Successful in 5s
Checks / Lint (pull_request) Successful in 21s
The first deployment of a new stack failed because the copy task does not
create the missing destination directory.
2026-11-27 21:29:02 +01:00
claude-bot Bot e654ae3bec Merge pull request 'Feature: Deploy it-tools through Ansible' (#15) from feature/adopt-it-tools-stack into main
Checks / Secret Scan (push) Successful in 5s
Checks / Lint (push) Successful in 22s
2026-11-27 21:10:25 +01:00
+6
View File
@@ -6,6 +6,12 @@
fail_msg: "docker_stack_name must be set" fail_msg: "docker_stack_name must be set"
quiet: true quiet: true
- name: Create stack directory for {{ docker_stack_name }}
ansible.builtin.file:
path: "{{ docker_stack_root }}/{{ docker_stack_name }}"
state: directory
mode: "0755"
- name: Copy compose file for {{ docker_stack_name }} - name: Copy compose file for {{ docker_stack_name }}
ansible.builtin.copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/../stacks/{{ docker_stack_name }}/docker-compose.yml" src: "{{ playbook_dir }}/../stacks/{{ docker_stack_name }}/docker-compose.yml"