2022-10-20 16:51:19 +02:00

30 lines
802 B
YAML

# create folder build
- name: git archive local
local_action:
module: git
repo: "https://{{ git_username | urlencode }}:{{ git_password | urlencode }}@git.valczeryba.ovh/v4l3n71n/{{ quarkus_project }}.git"
dest: "/home/valentin/src/"
archive: "/tmp/{{ quarkus_project }}.tar.gz"
force: yes
update: yes
when: "quarkus_project is defined"
- name: Create directory
file:
path: "{{ home_dir }}/{{ quarkus_project }}"
state: directory
when: "quarkus_project is defined"
- name: Extract covas quarkus
unarchive:
src: "/tmp/{{ quarkus_project }}.tar.gz"
dest: "{{ home_dir }}/{{ quarkus_project }}"
when: "quarkus_project is defined"
- name: Template env file
template:
src: "env-build.j2"
dest: "{{ home_dir }}/{{ quarkus_project }}/.env"