Some checks failed
Configure Kumonoboru / deploy (push) Failing after 1m4s
23 lines
732 B
YAML
23 lines
732 B
YAML
- name: Make sure Container directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ container_dir }}"
|
|
state: directory
|
|
|
|
- ansible.builtin.git:
|
|
repo: https://git.pukeko.xyz/shmick/docker.git
|
|
dest: "{{ container_dir }}/{{ item }}"
|
|
version: "{{ item }}-cv"
|
|
|
|
- ansible.builtin.cmd: 'curl -o docker-compose.yml.j2 "https://shmick:{{ ANSIBLE_TOKEN }}@git.pukeko.xyz/shmick/docker/raw/branch/{{ item }}/docker-compose.yml.j2"'
|
|
delegate_to: localhost
|
|
|
|
- ansible.builtin.template:
|
|
src: "docker-compose.yml.j2"
|
|
dest: "{{ container_dir }}/{{ item }}/docker-compose.yml"
|
|
delegate_to: localhost
|
|
|
|
- community.docker.docker_compose:
|
|
project_src: "{{ container_dir }}/{{ item }}"
|
|
tags: compose
|
|
ignore_errors: yes
|